aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r--scumm/script_v5.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 13510af5be..757f073adc 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -2358,8 +2358,7 @@ void Scumm_v5::o5_walkActorToActor() {
int nr;
int nr2 = getVarOrDirectByte(0x80);
a = derefActorSafe(nr2, "o5_walkActorToActor");
- if (!a)
- return;
+ assert(a);
if (!a->isInCurrentRoom()) {
getVarOrDirectByte(0x40);
@@ -2375,8 +2374,7 @@ void Scumm_v5::o5_walkActorToActor() {
}
// warning("walk actor %d to actor %d", nr, nr2);
a2 = derefActorSafe(nr, "o5_walkActorToActor(2)");
- if (!a2)
- return;
+ assert(a2);
if (!a2->isInCurrentRoom()) {
fetchScriptByte();