summaryrefslogtreecommitdiff
path: root/src/game-server
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server')
-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 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);