aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkaelima <kaelima@live.se>2011-09-05 15:56:47 +0200
committerkaelima <kaelima@live.se>2011-09-05 15:56:47 +0200
commit99935fd98c71dc8939bb5be1c2bb7656147a2211 (patch)
treedeec2d856702d8326d3157b3d3f8613c29e0b13e /src
parentd295bc4d19694243109e5c10da432bec68557d61 (diff)
BG/Isle of Conquest: Fix a crash in RemovePlayer.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Battlegrounds/Zones/BattlegroundIC.cpp7
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*/)