diff options
| author | w12x <none@none> | 2008-10-20 13:34:00 -0500 |
|---|---|---|
| committer | w12x <none@none> | 2008-10-20 13:34:00 -0500 |
| commit | 192dada7bd697f0bc4bfb3d3429f65a123d92285 (patch) | |
| tree | 0c51c8bc16777f54eab86fa85457e4e581423674 /src/game/OutdoorPvPEP.cpp | |
| parent | cdb7fd43eef1a4577da1af9012d302b0cd2de5bb (diff) | |
[svn] Fixed a crash in OutdoorPvP*::BuffTeam().
--HG--
branch : trunk
Diffstat (limited to 'src/game/OutdoorPvPEP.cpp')
| -rw-r--r-- | src/game/OutdoorPvPEP.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/OutdoorPvPEP.cpp b/src/game/OutdoorPvPEP.cpp index 581a6f558ff..a681ee353d2 100644 --- a/src/game/OutdoorPvPEP.cpp +++ b/src/game/OutdoorPvPEP.cpp @@ -840,9 +840,9 @@ void OutdoorPvPEP::BuffTeams() if(Player * plr = objmgr.GetPlayer(*itr)) { for(int i = 0; i < 4; ++i) - plr->RemoveAurasDueToSpell(EP_AllianceBuffs[i]); + if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(EP_AllianceBuffs[i]); if(m_AllianceTowersControlled && m_AllianceTowersControlled < 5) - plr->CastSpell(plr,EP_AllianceBuffs[m_AllianceTowersControlled-1],true); + if(plr->IsInWorld()) plr->CastSpell(plr,EP_AllianceBuffs[m_AllianceTowersControlled-1],true); } } for(std::set<uint64>::iterator itr = m_PlayerGuids[1].begin(); itr != m_PlayerGuids[1].end(); ++itr) @@ -850,9 +850,9 @@ void OutdoorPvPEP::BuffTeams() if(Player * plr = objmgr.GetPlayer(*itr)) { for(int i = 0; i < 4; ++i) - plr->RemoveAurasDueToSpell(EP_HordeBuffs[i]); + if(plr->IsInWorld()) plr->RemoveAurasDueToSpell(EP_HordeBuffs[i]); if(m_HordeTowersControlled && m_HordeTowersControlled < 5) - plr->CastSpell(plr,EP_HordeBuffs[m_HordeTowersControlled-1],true); + if(plr->IsInWorld()) plr->CastSpell(plr,EP_HordeBuffs[m_HordeTowersControlled-1],true); } } } |
