mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
script_loading: fix bug (#631)
This commit is contained in:
parent
c159dfd9b5
commit
1e9cc92454
@ -159,7 +159,8 @@ namespace gsc
|
||||
|
||||
console::info("Decompiling scriptfile '%s'\n", real_name.data());
|
||||
|
||||
const std::string stack{script_file->buffer, static_cast<std::uint32_t>(script_file->len)};
|
||||
const auto len = script_file->compressedLen ? script_file->compressedLen : script_file->len;
|
||||
const std::string stack{script_file->buffer, static_cast<std::uint32_t>(len)};
|
||||
|
||||
const auto decompressed_stack = utils::compression::zlib::decompress(stack);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user