We need to update the ActiveSharedTask pointer

When we leave, we need to make sure it's managed as well!
This commit is contained in:
Michael Cook (mackal) 2019-06-09 17:51:34 -04:00
parent 8a8e922f46
commit e99354223d

View File

@ -3556,6 +3556,8 @@ void ClientTaskState::AcceptNewSharedTask(Client *c, int TaskID, int NPCID, int
worldserver.SendPacket(pack); worldserver.SendPacket(pack);
delete pack; delete pack;
ActiveSharedTask = task_state;
return; return;
// there are a few issues we need to solve with this // there are a few issues we need to solve with this
@ -3590,6 +3592,8 @@ void ClientTaskState::AddToSharedTask(Client *c, int TaskID)
// this isn't an accept step. I guess we should add another event in case // this isn't an accept step. I guess we should add another event in case
// they need the same thing TODO // they need the same thing TODO
ActiveSharedTask = task;
return; return;
} }