aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authorStrangerke2013-10-25 22:40:09 +0200
committerStrangerke2013-10-25 22:40:09 +0200
commitda2ddbb8f482003a471b4f27eb222d4f9a23ea7b (patch)
tree54e3d4ba55374a93893f98e1b8bf8862ed00bcfc /engines/avalanche
parent97d28f0e725d2e705de60c16f6e3d969a6527353 (diff)
downloadscummvm-rg350-da2ddbb8f482003a471b4f27eb222d4f9a23ea7b.tar.gz
scummvm-rg350-da2ddbb8f482003a471b4f27eb222d4f9a23ea7b.tar.bz2
scummvm-rg350-da2ddbb8f482003a471b4f27eb222d4f9a23ea7b.zip
AVALANCHE: Fix 3 issues reported by Coverity.
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/background.cpp1
-rw-r--r--engines/avalanche/graphics.cpp1
-rw-r--r--engines/avalanche/parser.cpp2
3 files changed, 3 insertions, 1 deletions
diff --git a/engines/avalanche/background.cpp b/engines/avalanche/background.cpp
index c84c049c8f..4d71550213 100644
--- a/engines/avalanche/background.cpp
+++ b/engines/avalanche/background.cpp
@@ -37,6 +37,7 @@ const int16 Background::kOnDisk = -1;
Background::Background(AvalancheEngine *vm) {
_vm = vm;
_spriteNum = 0;
+ _nextBell = 0;
}
Background::~Background() {
diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp
index 25b01d65f3..d7c32cb1fc 100644
--- a/engines/avalanche/graphics.cpp
+++ b/engines/avalanche/graphics.cpp
@@ -49,6 +49,7 @@ const MouseHotspotType GraphicManager::kMouseHotSpots[9] = {
GraphicManager::GraphicManager(AvalancheEngine *vm) {
_vm = vm;
+ setDialogColor(kColorBlack, kColorWhite);
}
GraphicManager::~GraphicManager() {
diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp
index 297f27ffb8..b4cb64f70f 100644
--- a/engines/avalanche/parser.cpp
+++ b/engines/avalanche/parser.cpp
@@ -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])