Merge pull request #632 from diamante0018/develop

script_loading: actual fix
This commit is contained in:
Edo 2023-02-26 20:00:07 +01:00 committed by GitHub
commit 17b3c1e1ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ namespace gsc
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 auto decompressed_stack = utils::compression::zlib::decompress(stack);