*Prevent possible creation of instance from bg map.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-08-01 04:13:28 +02:00
1 parent 0241653d42
commit 452eb46398
1 file changed
+1 -3
+1 -3
View File
@@ -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)
{