aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-07 23:33:18 -0500
committermegamage <none@none>2009-06-07 23:33:18 -0500
commitf919fb47c50d9aac4e87c367d4b1a27be9c72382 (patch)
tree70c40eb7abfea5939807be84eefa9175be3bda2c
parenta328728cb85c1166db4efa46d71d96d7c16d0ee3 (diff)
*Move creature::update before summon timer check to prevent to lose the last tick.
--HG-- branch : trunk
-rw-r--r--src/game/TemporarySummon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp
index d4c4d54fb1d..7a405fc57ec 100644
--- a/src/game/TemporarySummon.cpp
+++ b/src/game/TemporarySummon.cpp
@@ -39,6 +39,8 @@ Unit* TempSummon::GetSummoner() const
void TempSummon::Update( uint32 diff )
{
+ Creature::Update(diff);
+
if (m_deathState == DEAD)
{
UnSummon();
@@ -162,8 +164,6 @@ void TempSummon::Update( uint32 diff )
sLog.outError("Temporary summoned creature (entry: %u) have unknown type %u of ",GetEntry(),m_type);
break;
}
-
- Creature::Update( diff );
}
void TempSummon::InitStats(uint32 duration)