mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
*Fix a problem with instantioned bgs introduced in 4697.
--HG-- branch : trunk
This commit is contained in:
@@ -125,7 +125,11 @@ Map* MapInstanced::CreateInstance(const uint32 mapId, Player * player, uint32 in
|
||||
if(IsBattleGroundOrArena())
|
||||
{
|
||||
assert(player->GetBattleGroundId());
|
||||
return CreateBattleGround(player->GetBattleGroundId());
|
||||
instanceId = player->GetBattleGroundId();
|
||||
if(instanceId)
|
||||
if(Map *map = _FindMap(instanceId))
|
||||
return map;
|
||||
return CreateBattleGround(instanceId);
|
||||
}
|
||||
|
||||
if(InstanceSave *pSave = player->GetInstanceSave(GetId()))
|
||||
|
||||
Reference in New Issue
Block a user