script_loading: actual fix
This commit is contained in:
parent
d4f5440772
commit
e57b62fd3b
@ -61,7 +61,7 @@ namespace gsc
|
|||||||
|
|
||||||
console::info("Decompiling scriptfile '%s'\n", real_name.data());
|
console::info("Decompiling scriptfile '%s'\n", real_name.data());
|
||||||
|
|
||||||
const auto len = script_file->compressedLen ? script_file->compressedLen : script_file->len;
|
const auto len = script_file->compressedLen;
|
||||||
const std::string stack{ script_file->buffer, static_cast<std::uint32_t>(len) };
|
const std::string stack{ script_file->buffer, static_cast<std::uint32_t>(len) };
|
||||||
|
|
||||||
const auto decompressed_stack = utils::compression::zlib::decompress(stack);
|
const auto decompressed_stack = utils::compression::zlib::decompress(stack);
|
||||||
|
Loading…
Reference in New Issue
Block a user