AVALANCHE: Fix 3 issues reported by Coverity.

This commit is contained in:
Strangerke 2013-10-25 22:40:09 +02:00
parent 97d28f0e72
commit da2ddbb8f4
3 changed files with 3 additions and 1 deletions

View file

@ -1013,7 +1013,7 @@ bool Parser::isHolding() {
bool holdingResult = false;
if (_thing > 100)
if (_thing >= 100)
_vm->_dialogs->displayText("Be reasonable!");
else if (_thing <= kObjectNum) {
if (!_vm->_objects[_thing - 1])