aboutsummaryrefslogtreecommitdiff
path: root/src/game/MapInstanced.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-23 17:04:15 -0600
committermegamage <none@none>2009-02-23 17:04:15 -0600
commit5fe7b48037c7892c24f5c2f9ea1d18c424ac85e9 (patch)
tree0650745d74d6b63003429de0dff65632699d71f3 /src/game/MapInstanced.cpp
parentbefa36f8b91ab2a08719ff4d1df0433d9ac604b1 (diff)
parentde947abd068ad603ca202ae53ffeeefed944681f (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/MapInstanced.cpp')
-rw-r--r--src/game/MapInstanced.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/MapInstanced.cpp b/src/game/MapInstanced.cpp
index 5a26a28159f..116d26f4975 100644
--- a/src/game/MapInstanced.cpp
+++ b/src/game/MapInstanced.cpp
@@ -148,7 +148,13 @@ Map* MapInstanced::GetInstance(const WorldObject* obj)
// instantiate or find existing bg map for player
// the instance id is set in battlegroundid
NewInstanceId = player->GetBattleGroundId();
- assert(NewInstanceId);
+ if(!NewInstanceId)
+ {
+ if(player->GetSession()->PlayerLoading())
+ return NULL;
+ else
+ assert(NewInstanceId);
+ }
map = _FindMap(NewInstanceId);
if(!map)
map = CreateBattleGround(NewInstanceId);