From 3a439ed6c1112afc17e76cdf47bdec64e4af4f93 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Tue, 15 Jan 2013 10:26:25 +0100 Subject: Fixed setting current map for npc update function --- src/game-server/npc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game-server/npc.cpp b/src/game-server/npc.cpp index 82cd6a5..ce6ac32 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(); -- cgit