mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
XEEN: Fix some Coverity warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user