From 1156abd532f1e3439e4f81e32aa05a558858c44c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 18 May 2003 02:22:26 +0000 Subject: wow, now this is a stupid bug... fixes various issues in Zak256 at the very least svn-id: r7622 --- scumm/script_v5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scumm') diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp index 49e67ae26c..a3a3277eb3 100644 --- a/scumm/script_v5.cpp +++ b/scumm/script_v5.cpp @@ -1093,7 +1093,7 @@ void Scumm_v5::o5_getClosestObjActor() { } } while (--obj >= VAR(VAR_ACTOR_RANGE_MIN)); - setResult(closest_dist); + setResult(closest_obj); } void Scumm_v5::o5_getDist() { -- cgit v1.2.3