From a31cfa97e4a092122c77a7ab926bb092ffe3ba10 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 20 Dec 2023 00:06:49 +0100 Subject: [PATCH] fixed typo in FZipFile::GetRawData. This one caused incompletely loaded savegames. --- src/common/filesystem/source/file_zip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filesystem/source/file_zip.cpp b/src/common/filesystem/source/file_zip.cpp index 3356fc1fa..9f10d00a7 100644 --- a/src/common/filesystem/source/file_zip.cpp +++ b/src/common/filesystem/source/file_zip.cpp @@ -332,7 +332,7 @@ FCompressedBuffer FZipFile::GetRawData(uint32_t entry) { FCompressedBuffer cbuf; - if (entry >= NumLumps >> Entries[entry].Length == 0) + if (entry >= NumLumps || Entries[entry].Length == 0) { cbuf = { 0, 0, METHOD_STORED, 0, 0, nullptr }; }