fix(Core): possible crashfix (#7683)

This commit is contained in:
UltraNix
2021-09-01 19:14:16 +02:00
committed by GitHub
parent 595bb6adcc
commit efc5cd467d
@@ -1634,11 +1634,8 @@ namespace lfg
if (player->GetMapId() == uint32(dungeon->map)) if (player->GetMapId() == uint32(dungeon->map))
{ {
// Remove bind to that map // Remove bind to that map
if (!sInstanceSaveMgr->PlayerIsPermBoundToInstance(player->GetGUID(), dungeon->map, player->GetDungeonDifficulty()))
{
sInstanceSaveMgr->PlayerUnbindInstance(player->GetGUID(), dungeon->map, player->GetDungeonDifficulty(), true); sInstanceSaveMgr->PlayerUnbindInstance(player->GetGUID(), dungeon->map, player->GetDungeonDifficulty(), true);
} }
}
// Add the cooldown spell if queued for a random dungeon // Add the cooldown spell if queued for a random dungeon
// xinef: add aura // xinef: add aura