aboutsummaryrefslogtreecommitdiff
path: root/boxes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'boxes.cpp')
-rw-r--r--boxes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/boxes.cpp b/boxes.cpp
index a80822b58f..6cada6ae61 100644
--- a/boxes.cpp
+++ b/boxes.cpp
@@ -870,6 +870,8 @@ int Scumm::findPathTowardsOld(Actor * a, byte trap1, byte trap2,
{
GetGates(trap1, trap2);
ScummPoint pt;
+ // FIXME - is parameter "a" ignored on purpose?!?
+ Actor *actor = getFirstActor();
gateLoc[1].x = actor->x;
gateLoc[1].y = actor->y;