*Prevent possible creation of instance from bg map.
--HG-- branch : trunk
This commit is contained in:
1 parent
0241653d42
commit
452eb46398
1 file changed
+1
-3
@@ -124,15 +124,13 @@ Map* MapInstanced::CreateInstance(const uint32 mapId, Player * player, uint32 in
|
||||
|
||||
if(IsBattleGroundOrArena())
|
||||
{
|
||||
assert(player->GetBattleGroundId());
|
||||
instanceId = player->GetBattleGroundId();
|
||||
if(instanceId)
|
||||
if(Map *map = _FindMap(instanceId))
|
||||
return map;
|
||||
return CreateBattleGround(instanceId);
|
||||
}
|
||||
|
||||
if(InstanceSave *pSave = player->GetInstanceSave(GetId()))
|
||||
else if(InstanceSave *pSave = player->GetInstanceSave(GetId()))
|
||||
{
|
||||
if(!instanceId)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user