diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-01-15 10:26:25 +0100 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-01-15 10:37:32 +0100 |
commit | 3a439ed6c1112afc17e76cdf47bdec64e4af4f93 (patch) | |
tree | 5ab1d5b262fa84ddfa0a3bd513bc6fa9d5b9505b | |
parent | dbc573079687f99f71c484214e3d403a9c2d7533 (diff) | |
download | manaserv-3a439ed6c1112afc17e76cdf47bdec64e4af4f93.tar.gz manaserv-3a439ed6c1112afc17e76cdf47bdec64e4af4f93.tar.xz manaserv-3a439ed6c1112afc17e76cdf47bdec64e4af4f93.zip |
Fixed setting current map for npc update function
-rw-r--r-- | src/game-server/npc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |