diff options
author | Peter Kohaut | 2019-02-20 22:02:43 +0100 |
---|---|---|
committer | Peter Kohaut | 2019-02-20 23:02:05 +0100 |
commit | 4886b0581ee45f5360b96bccf061cec982ede9f3 (patch) | |
tree | 4c9247d8bcfa4deb3be6717f4c821705408a611d /engines/bladerunner/script | |
parent | daa98e408fa9f799b12b60f1331f5bd043ec3240 (diff) | |
download | scummvm-rg350-4886b0581ee45f5360b96bccf061cec982ede9f3.tar.gz scummvm-rg350-4886b0581ee45f5360b96bccf061cec982ede9f3.tar.bz2 scummvm-rg350-4886b0581ee45f5360b96bccf061cec982ede9f3.zip |
BLADERUNNER: Fix Coverity issues
Diffstat (limited to 'engines/bladerunner/script')
-rw-r--r-- | engines/bladerunner/script/ai/izo.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/steele.cpp | 2 | ||||
-rw-r--r-- | engines/bladerunner/script/scene_script.cpp | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/engines/bladerunner/script/ai/izo.cpp b/engines/bladerunner/script/ai/izo.cpp index 9e48995816..ce1c15c208 100644 --- a/engines/bladerunner/script/ai/izo.cpp +++ b/engines/bladerunner/script/ai/izo.cpp @@ -192,7 +192,7 @@ void AIScriptIzo::OtherAgentExitedThisScene(int otherActorId) { void AIScriptIzo::OtherAgentEnteredCombatMode(int otherActorId, int combatMode) { if (Actor_Query_Goal_Number(kActorIzo) == kGoalIzoRC03Walk) { - Game_Flag_Query(kFlagIzoIsReplicant); + Game_Flag_Query(kFlagIzoIsReplicant); // bug in the game? } return; //false; } diff --git a/engines/bladerunner/script/ai/steele.cpp b/engines/bladerunner/script/ai/steele.cpp index 1715f6d6ed..f5e9f05ad4 100644 --- a/engines/bladerunner/script/ai/steele.cpp +++ b/engines/bladerunner/script/ai/steele.cpp @@ -1963,7 +1963,7 @@ bool AIScriptSteele::UpdateAnimation(int *animation, int *frame) { bool AIScriptSteele::ChangeAnimationMode(int mode) { switch (mode) { - case kGoalSteeleDefault: + case kAnimationModeIdle: if (Game_Flag_Query(kFlagSteeleAimingAtGordo)) { _var1 = 3; } else { diff --git a/engines/bladerunner/script/scene_script.cpp b/engines/bladerunner/script/scene_script.cpp index c4a5a1bc3f..77ebaa2a98 100644 --- a/engines/bladerunner/script/scene_script.cpp +++ b/engines/bladerunner/script/scene_script.cpp @@ -27,7 +27,9 @@ namespace BladeRunner { SceneScript::SceneScript(BladeRunnerEngine *vm) : _vm(vm) , _inScriptCounter(0) - , _currentScript(nullptr) {} + , _currentScript(nullptr) + , _mouseX(0) + , _mouseY(0) {} SceneScript::~SceneScript() { delete _currentScript; |