[7437] Fixed client visible instance ids for battlegrounds. Author: balrok

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-03-10 15:30:44 -06:00
1 parent 1c151b7244
commit a0fede4fc2
6 files changed
+63 -15

No files matched your search

+2 -2
View File
@@ -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)))
{