AVALANCHE: Fix 3 issues reported by Coverity.
This commit is contained in:
parent
97d28f0e72
commit
da2ddbb8f4
3 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue