diff options
| -rwxr-xr-x | src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp index 9df7cce05d8..c7ca9cac571 100755 --- a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp @@ -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*/) |
