diff options
-rw-r--r-- | engines/sci/engine/file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/file.cpp b/engines/sci/engine/file.cpp index 7f737036d2..5821313ac7 100644 --- a/engines/sci/engine/file.cpp +++ b/engines/sci/engine/file.cpp @@ -424,7 +424,7 @@ Common::MemoryReadStream *makeCatalogue(const uint maxNumSaves, const uint gameN WRITE_LE_UINT16(out, id); out += kGameIdSize; - assert(id >= 0 && id < maxNumSaves); + assert(id < maxNumSaves); usedSlots[id] = true; } } |