diff options
author | megamage <none@none> | 2009-02-23 17:04:15 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-23 17:04:15 -0600 |
commit | 5fe7b48037c7892c24f5c2f9ea1d18c424ac85e9 (patch) | |
tree | 0650745d74d6b63003429de0dff65632699d71f3 /src/game/MapInstanced.cpp | |
parent | befa36f8b91ab2a08719ff4d1df0433d9ac604b1 (diff) | |
parent | de947abd068ad603ca202ae53ffeeefed944681f (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/MapInstanced.cpp')
-rw-r--r-- | src/game/MapInstanced.cpp | 8 |
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); |