From 2fc85bbfc1fac1ecc8b6292e44c8b2a51858d5ae Mon Sep 17 00:00:00 2001 From: Edo Date: Sun, 26 Feb 2023 17:25:01 +0100 Subject: [PATCH] script_loading: actual fix --- src/client/component/gsc/script_loading.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/component/gsc/script_loading.cpp b/src/client/component/gsc/script_loading.cpp index 1cf9511..60be599 100644 --- a/src/client/component/gsc/script_loading.cpp +++ b/src/client/component/gsc/script_loading.cpp @@ -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(len)}; const auto decompressed_stack = utils::compression::zlib::decompress(stack);