BG/Isle of Conquest: Fix a crash in RemovePlayer.

This commit is contained in:
kaelima
2011-09-05 15:56:47 +02:00
parent d295bc4d19
commit 99935fd98c

View File

@@ -311,8 +311,11 @@ void BattlegroundIC::AddPlayer(Player *plr)
void BattlegroundIC::RemovePlayer(Player* plr, uint64 /*guid*/, uint32 /*team*/)
{
plr->RemoveAura(SPELL_QUARRY);
plr->RemoveAura(SPELL_OIL_REFINERY);
if (plr)
{
plr->RemoveAura(SPELL_QUARRY);
plr->RemoveAura(SPELL_OIL_REFINERY);
}
}
void BattlegroundIC::HandleAreaTrigger(Player* /*Source*/, uint32 /*Trigger*/)