diff options
| author | kaelima <kaelima@live.se> | 2011-09-05 15:56:47 +0200 |
|---|---|---|
| committer | kaelima <kaelima@live.se> | 2011-09-05 15:56:47 +0200 |
| commit | 99935fd98c71dc8939bb5be1c2bb7656147a2211 (patch) | |
| tree | deec2d856702d8326d3157b3d3f8613c29e0b13e /src | |
| parent | d295bc4d19694243109e5c10da432bec68557d61 (diff) | |
BG/Isle of Conquest: Fix a crash in RemovePlayer.
Diffstat (limited to 'src')
| -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*/) |
