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.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index b1777cb3d..38034980e 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -221,9 +221,9 @@ function script npctalkonce {
set(getvariableofnpc(.talk_lock, strnpcinfo(NPC_NAME_UNIQUE)), gettimetick(2) + getarg(1, 1));
break;
default:
- if (gettimetick(2) <= @NPC_TALK_LOCK[getnpcid(0)])
+ if (gettimetick(2) <= @NPC_TALK_LOCK[getnpcid()])
return false;
- @NPC_TALK_LOCK[getnpcid(0)] = gettimetick(2) + getarg(1, 1);
+ @NPC_TALK_LOCK[getnpcid()] = gettimetick(2) + getarg(1, 1);
}
// talk mechanism