aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/mutationofjb/commands/changecommand.cpp2
-rw-r--r--engines/mutationofjb/commands/ifcommand.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/changecommand.cpp b/engines/mutationofjb/commands/changecommand.cpp
index 9051e8eeaa..c97fe726d7 100644
--- a/engines/mutationofjb/commands/changecommand.cpp
+++ b/engines/mutationofjb/commands/changecommand.cpp
@@ -405,7 +405,7 @@ Command::ExecuteResult ChangeObjectCommand::execute(ScriptExecutionContext &scri
return Finished;
}
- Object *const object = scene->getObject(_entityId);
+ Object *const object = scene->getObject(_entityId, true);
if (!object) {
return Finished;
}
diff --git a/engines/mutationofjb/commands/ifcommand.cpp b/engines/mutationofjb/commands/ifcommand.cpp
index 47e06f3309..fb48787af2 100644
--- a/engines/mutationofjb/commands/ifcommand.cpp
+++ b/engines/mutationofjb/commands/ifcommand.cpp
@@ -89,7 +89,7 @@ Command::ExecuteResult IfCommand::execute(ScriptExecutionContext &scriptExecCtx)
return Finished;
}
- Object *const object = scene->getObject(_objectId);
+ Object *const object = scene->getObject(_objectId, true);
if (!object) {
return Finished;
}