BG/Isle of Conquest: Fix a crash in RemovePlayer.
This commit is contained in:
@@ -310,10 +310,13 @@ void BattlegroundIC::AddPlayer(Player *plr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BattlegroundIC::RemovePlayer(Player* plr, uint64 /*guid*/, uint32 /*team*/)
|
void BattlegroundIC::RemovePlayer(Player* plr, uint64 /*guid*/, uint32 /*team*/)
|
||||||
|
{
|
||||||
|
if (plr)
|
||||||
{
|
{
|
||||||
plr->RemoveAura(SPELL_QUARRY);
|
plr->RemoveAura(SPELL_QUARRY);
|
||||||
plr->RemoveAura(SPELL_OIL_REFINERY);
|
plr->RemoveAura(SPELL_OIL_REFINERY);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void BattlegroundIC::HandleAreaTrigger(Player* /*Source*/, uint32 /*Trigger*/)
|
void BattlegroundIC::HandleAreaTrigger(Player* /*Source*/, uint32 /*Trigger*/)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user