*Wintergrasp: Fix server crash at battle end, by Spp

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-13 19:15:33 -07:00
parent 9fdc4e137b
commit c6b940a078
+4 -2
View File
@@ -967,9 +967,11 @@ void OPvPWintergrasp::EndBattle()
for (PlayerSet::iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr) for (PlayerSet::iterator itr = m_players[team].begin(); itr != m_players[team].end(); ++itr)
{ {
// When WG ends the zone is cleaned including corpses, revive all players if dead // When WG ends the zone is cleaned including corpses, revive all players if dead
if ((*itr)->isDead()) if ((*itr)->isDead())
{
(*itr)->ResurrectPlayer(1.0f); (*itr)->ResurrectPlayer(1.0f);
ObjectAccessor::Instance().ConvertCorpseForPlayer((*itr)->GetGUID());
}
if ((*itr)->HasAura(SPELL_LIEUTENANT)) if ((*itr)->HasAura(SPELL_LIEUTENANT))
{ {
if (!sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_CUSTOM_HONOR)) if (!sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_CUSTOM_HONOR))