Skip to content
Permalink
Browse files

AVALANCHE: Fix 3 issues reported by Coverity.

  • Loading branch information...
Strangerke committed Oct 25, 2013
1 parent 97d28f0 commit da2ddbb8f482003a471b4f27eb222d4f9a23ea7b
Showing with 3 additions and 1 deletion.
  1. +1 −0 engines/avalanche/background.cpp
  2. +1 −0 engines/avalanche/graphics.cpp
  3. +1 −1 engines/avalanche/parser.cpp
@@ -37,6 +37,7 @@ const int16 Background::kOnDisk = -1;
Background::Background(AvalancheEngine *vm) {
_vm = vm;
_spriteNum = 0;
_nextBell = 0;
}

Background::~Background() {
@@ -49,6 +49,7 @@ const MouseHotspotType GraphicManager::kMouseHotSpots[9] = {

GraphicManager::GraphicManager(AvalancheEngine *vm) {
_vm = vm;
setDialogColor(kColorBlack, kColorWhite);
}

GraphicManager::~GraphicManager() {
@@ -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])

0 comments on commit da2ddbb

Please sign in to comment.
You can’t perform that action at this time.