[7437] Fixed client visible instance ids for battlegrounds. Patch provided by balrok. Thx.

Signed-off-by: Triply <triply@getmangos.com>
This commit is contained in:
balrok 2009-03-10 16:51:37 +01:00 committed by Triply
parent 6a24242cb5
commit b6064c373e
6 changed files with 63 additions and 15 deletions

View file

@ -110,9 +110,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)))
{