diff options
Diffstat (limited to 'src/game-server')
-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 b5e17eac..980358da 100644 --- a/src/game-server/npc.cpp +++ b/src/game-server/npc.cpp @@ -94,6 +94,8 @@ void Npc::start(Entity *npc, Entity *ch) { Script::Thread *thread = script->newThread(); thread->getContext().map = npc->getMap(); + thread->getContext().npc = npc; + thread->getContext().character = ch; script->prepare(talkCallback); script->push(npc); script->push(ch); |