summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 8ddcd631b..a05d07276 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -256,7 +256,7 @@ function script any_of {
/////////////////////////////////////////////
function script getmap {
- if (getmapxy(.@mapName$, .@xpos, .@ypos, 0) != 0)
+ if (getmapxy(.@mapName$, .@xpos, .@ypos, getarg(0,0)) != 0)
return false;
return .@mapName$;
}