diff --git a/src/pbg3/Pbg3Archive.cpp b/src/pbg3/Pbg3Archive.cpp index 9f467812..8f953456 100644 --- a/src/pbg3/Pbg3Archive.cpp +++ b/src/pbg3/Pbg3Archive.cpp @@ -96,7 +96,7 @@ i32 Pbg3Archive::FindEntry(char *path) u32 Pbg3Archive::GetEntrySize(u32 entryIdx) { - if (this->numOfEntries <= entryIdx) + if (entryIdx >= this->numOfEntries) { return 0; }