fixed typo in FZipFile::GetRawData.

This one caused incompletely loaded savegames.
This commit is contained in:
Christoph Oelckers 2023-12-20 00:06:49 +01:00
parent d11bf52831
commit a31cfa97e4

View file

@ -332,7 +332,7 @@ FCompressedBuffer FZipFile::GetRawData(uint32_t entry)
{ {
FCompressedBuffer cbuf; FCompressedBuffer cbuf;
if (entry >= NumLumps >> Entries[entry].Length == 0) if (entry >= NumLumps || Entries[entry].Length == 0)
{ {
cbuf = { 0, 0, METHOD_STORED, 0, 0, nullptr }; cbuf = { 0, 0, METHOD_STORED, 0, 0, nullptr };
} }