summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/npcmovegraph.txt2
1 files changed, 1 insertions, 1 deletions
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));