Fix instance binding

This commit is contained in:
mik1893
2016-08-03 17:47:14 +01:00
committed by Yehonal
parent 160da9450b
commit 2aa3a463f0

View File

@@ -2682,10 +2682,12 @@ void InstanceMap::PermBindAllPlayers()
{
player = itr->GetSource();
group = player->GetGroup();
// players inside an instance cannot be bound to other instances
// some players may already be permanently bound, in this case nothing happens
InstancePlayerBind* bind = sInstanceSaveMgr->PlayerGetBoundInstance(player->GetGUIDLow(), save->GetMapId(), save->GetDifficulty());
if ((!group || !group->isLFGGroup() || !group->IsLfgRandomInstance()) && (!bind || !bind->perm))
if (!bind || !bind->perm)
{
WorldPacket data(SMSG_INSTANCE_SAVE_CREATED, 4);
data << uint32(0);