summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game-server/npc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game-server/npc.cpp b/src/game-server/npc.cpp
index 82cd6a51..ce6ac32e 100644
--- a/src/game-server/npc.cpp
+++ b/src/game-server/npc.cpp
@@ -54,6 +54,8 @@ void NPC::update()
return;
Script *script = ScriptManager::currentState();
+ script->setMap(getMap());
+
script->prepare(mUpdateCallback);
script->push(this);
script->execute();