Store pendingInstanceId instead of pointer of instance save, because pointer may become invalid. Fix #2987.

This commit is contained in:
megamage authored and Shauren committed 2011-09-15 22:04:51 +02:00
1 parent 74616464f2
commit bd4cf4b78b
3 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -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);
}
}
}