From 9a175ab1a2bfbdde5be0c10866d97ec34ea74f88 Mon Sep 17 00:00:00 2001 From: Reid Date: Sun, 6 Nov 2016 00:19:10 +0100 Subject: Fix wrong error value check on graph walking npc functions. --- npc/functions/npcmovegraph.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/functions/npcmovegraph.txt b/npc/functions/npcmovegraph.txt index 61533d82..f5ae9240 100644 --- a/npc/functions/npcmovegraph.txt +++ b/npc/functions/npcmovegraph.txt @@ -132,7 +132,7 @@ function script execmovecmd { .@pos_idx = 2; } .@pos = findmovegraphlabel(.@cmd$[.@pos_idx]); - if (.@pos > 0) + if (.@pos != -1) { .@x = getvariableofnpc(.movepos_x1[.@pos], strnpcinfo(3)); .@y = getvariableofnpc(.movepos_y1[.@pos], strnpcinfo(3)); -- cgit v1.2.3-70-g09d2