aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-13 19:15:33 -0700
committermaximius <none@none>2009-10-13 19:15:33 -0700
commitc6b940a078379c9c258ed04eb50b200df9194e8e (patch)
treeaba7a3ad25fb588bfd1abb31917a85f0d0149fdb /src
parent9fdc4e137b51542a9528249f00eee3dea2ecb4bb (diff)
*Wintergrasp: Fix server crash at battle end, by Spp
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Wintergrasp.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp
index 4ebd7c3c6a6..09c7e11e301 100644
--- a/src/game/Wintergrasp.cpp
+++ b/src/game/Wintergrasp.cpp
@@ -967,9 +967,11 @@ void OPvPWintergrasp::EndBattle()
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
- if ((*itr)->isDead())
+ if ((*itr)->isDead())
+ {
(*itr)->ResurrectPlayer(1.0f);
-
+ ObjectAccessor::Instance().ConvertCorpseForPlayer((*itr)->GetGUID());
+ }
if ((*itr)->HasAura(SPELL_LIEUTENANT))
{
if (!sWorld.getConfig(CONFIG_OUTDOORPVP_WINTERGRASP_CUSTOM_HONOR))