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

@ -37,6 +37,7 @@ const int16 Background::kOnDisk = -1;
Background::Background(AvalancheEngine *vm) { Background::Background(AvalancheEngine *vm) {
_vm = vm; _vm = vm;
_spriteNum = 0; _spriteNum = 0;
_nextBell = 0;
} }
Background::~Background() { Background::~Background() {

View file

@ -49,6 +49,7 @@ const MouseHotspotType GraphicManager::kMouseHotSpots[9] = {
GraphicManager::GraphicManager(AvalancheEngine *vm) { GraphicManager::GraphicManager(AvalancheEngine *vm) {
_vm = vm; _vm = vm;
setDialogColor(kColorBlack, kColorWhite);
} }
GraphicManager::~GraphicManager() { GraphicManager::~GraphicManager() {

View file

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