aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-09-24 22:44:26 -0500
committerColin Snover2017-09-24 22:56:59 -0500
commit24c8a26c759f476619c3e844deb7ae8b2c3ca048 (patch)
tree0b488bf591dc8db0844fdaa6a519806eb2158778
parent743082ac8c9aa295db25bdcd47242913d7f6c02a (diff)
downloadscummvm-rg350-24c8a26c759f476619c3e844deb7ae8b2c3ca048.tar.gz
scummvm-rg350-24c8a26c759f476619c3e844deb7ae8b2c3ca048.tar.bz2
scummvm-rg350-24c8a26c759f476619c3e844deb7ae8b2c3ca048.zip
SCI32: Remove unnecessary negative assertion check on unsigned integer
Fixes CID 1381416.
-rw-r--r--engines/sci/engine/file.cpp2
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;
}
}