Fix for crash in world from shared tasks

This commit is contained in:
KimLS 2019-06-02 00:46:11 -07:00
parent b0dff0c006
commit 32e04cd264

View File

@ -260,8 +260,6 @@ void ClientListEntry::ClearVars(bool iAll) {
gm = 0;
pClientVersion = 0;
shared_task_id = 0;
if (m_shared_task != nullptr)
m_shared_task->MemberLeftGame(this);
m_shared_task = nullptr;
for (auto &elem : tell_queue)
safe_delete_array(elem);
@ -276,6 +274,9 @@ void ClientListEntry::Camp(ZoneServer* iZS) {
LSUpdate(pzoneserver);
}
if (m_shared_task != nullptr)
m_shared_task->MemberLeftGame(this);
ClearVars();
stale = 0;