[8612] better error-check when getting bgTypeId from Battlemasterentry

This commit is contained in:
balrok 2009-10-10 01:35:58 +02:00
parent d7e01c3e16
commit caf4732e38
4 changed files with 13 additions and 2 deletions

View file

@ -50,6 +50,9 @@ void WorldSession::HandleBattlemasterHelloOpcode( WorldPacket & recv_data )
BattleGroundTypeId bgTypeId = sBattleGroundMgr.GetBattleMasterBG(unit->GetEntry());
if (bgTypeId == BATTLEGROUND_TYPE_NONE)
return;
if (!_player->GetBGAccessByLevel(bgTypeId))
{
// temp, must be gossip message...