aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGroundHandler.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-10 15:30:44 -0600
committermegamage <none@none>2009-03-10 15:30:44 -0600
commita0fede4fc21de9f1b8fc5939bf0c6798ce78071a (patch)
tree54168aeaf6ce0f9dde53fadeea7ae14ffd9eef35 /src/game/BattleGroundHandler.cpp
parent1c151b72446fcb2908df6fee97058c43c7ca83c2 (diff)
[7437] Fixed client visible instance ids for battlegrounds. Author: balrok
--HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGroundHandler.cpp')
-rw-r--r--src/game/BattleGroundHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/BattleGroundHandler.cpp b/src/game/BattleGroundHandler.cpp
index ddf747f4401..912c1349d05 100644
--- a/src/game/BattleGroundHandler.cpp
+++ b/src/game/BattleGroundHandler.cpp
@@ -112,9 +112,9 @@ void WorldSession::HandleBattleGroundJoinOpcode( WorldPacket & recv_data )
return;
// get bg instance or bg template if instance not found
- BattleGround * bg = 0;
+ BattleGround * bg = NULL;
if(instanceId)
- BattleGround *bg = sBattleGroundMgr.GetBattleGround(instanceId, bgTypeId);
+ BattleGround *bg = sBattleGroundMgr.GetBattleGroundThroughClientInstance(instanceId, bgTypeId, _player->GetBattleGroundQueueIdFromLevel(bgTypeId));
if(!bg && !(bg = sBattleGroundMgr.GetBattleGroundTemplate(bgTypeId)))
{