aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-11-15 20:36:04 -0500
committerPaul Gilbert2017-11-15 20:36:04 -0500
commit2b823d63d42973e751db5f5ff8a4efed10faa239 (patch)
treee5e8da456bfa9e0b2f6d92c53ca4f3390181c094 /engines
parenta97a9507c9e9041b4f6c49350ee560118adb267c (diff)
downloadscummvm-rg350-2b823d63d42973e751db5f5ff8a4efed10faa239.tar.gz
scummvm-rg350-2b823d63d42973e751db5f5ff8a4efed10faa239.tar.bz2
scummvm-rg350-2b823d63d42973e751db5f5ff8a4efed10faa239.zip
XEEN: Fix some Coverity warnings
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/interface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index 0090a5898f..959252d65e 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -536,7 +536,7 @@ void Interface::perform() {
(int)party._activeParty.size() - 1 : spells._lastCaster];
do {
int spellId = CastSpell::show(_vm, c);
- if (spellId == -1 || c == nullptr)
+ if (spellId == -1)
break;
result = spells.castSpell(c, (MagicSpell)spellId);
@@ -682,7 +682,7 @@ void Interface::doStepCode() {
break;
}
- if (_vm->_files->_isDarkCc && party._gameFlags[374]) {
+ if (_vm->_files->_isDarkCc && party._gameFlags[1][118]) {
_falling = false;
} else {
if (_falling)
@@ -716,7 +716,7 @@ void Interface::startFalling(bool flag) {
Scripts &scripts = *_vm->_scripts;
bool isDarkCc = _vm->_files->_isDarkCc;
- if (isDarkCc && party._gameFlags[374]) {
+ if (isDarkCc && party._gameFlags[1][118]) {
_falling = 0;
return;
}