fix: Fixed casting error

This commit is contained in:
Jari van der Kaap 2023-03-01 00:13:25 +01:00
parent 6baee87d6e
commit 5735344152

View File

@ -51,7 +51,7 @@ namespace script
auto rawfile = static_cast<game::RawFile*>(allocator.allocate(24));
rawfile->name = name.c_str();
rawfile->buffer = file_string;
rawfile->len = data.length();
rawfile->len = static_cast<int>(data.length());
globals.loaded_scripts[name] = rawfile;
}