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);