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 763a1c40..0b89ae72 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -699,7 +699,7 @@ function script fakenpcname {
function script npcwarp {
if (getargcount() > 2)
- .@id=getnpcid(getarg(3));
+ .@id=getnpcid(getarg(2));
else
.@id=getnpcid();