Store pendingInstanceId instead of pointer of instance save, because pointer may become invalid. Fix #2987.
This commit is contained in:
1 parent
74616464f2
commit
bd4cf4b78b
3 files changed
+10
-6
No files matched your search
@@ -2361,7 +2361,7 @@ bool InstanceMap::Add(Player* player)
|
||||
data << uint32(i_data ? i_data->GetCompletedEncounterMask() : 0);
|
||||
data << uint8(0);
|
||||
player->GetSession()->SendPacket(&data);
|
||||
player->SetPendingBind(mapSave, 60000);
|
||||
player->SetPendingBind(mapSave->GetInstanceId(), 60000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user