aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script
diff options
context:
space:
mode:
authorPeter Kohaut2019-02-20 22:02:43 +0100
committerPeter Kohaut2019-02-20 23:02:05 +0100
commit4886b0581ee45f5360b96bccf061cec982ede9f3 (patch)
tree4c9247d8bcfa4deb3be6717f4c821705408a611d /engines/bladerunner/script
parentdaa98e408fa9f799b12b60f1331f5bd043ec3240 (diff)
downloadscummvm-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.cpp2
-rw-r--r--engines/bladerunner/script/ai/steele.cpp2
-rw-r--r--engines/bladerunner/script/scene_script.cpp4
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;