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(+) (limited to 'src/game-server/npc.cpp') 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(); -- cgit v1.2.3-70-g09d2