diff options
author | megamage <none@none> | 2008-10-25 01:39:51 -0500 |
---|---|---|
committer | megamage <none@none> | 2008-10-25 01:39:51 -0500 |
commit | e22427d4b0f962729957d6dd6aeb85975419cd18 (patch) | |
tree | e1a3dc62793255863c1f860dccb8df69e9f07885 /src | |
parent | 0a3057972c78196621196cc68e785ed6d81e75c1 (diff) |
[svn] Fix the bug that summoned creatures may respawn.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/TemporarySummon.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index d8884e61c9e..e46cda6143d 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -32,6 +32,11 @@ Creature(), m_type(TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN), m_timer(0), m_lifetime(0 void TemporarySummon::Update( uint32 diff ) { + if (m_deathState == DEAD) + { + UnSummon(); + return; + } switch(m_type) { case TEMPSUMMON_MANUAL_DESPAWN: |