aboutsummaryrefslogtreecommitdiff
path: root/src/game/TemporarySummon.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-09 18:18:41 +0200
committerQAston <none@none>2009-07-09 18:18:41 +0200
commit99ef71cbc4eff7e2b195ccdd9ad5d4185ca89387 (patch)
tree0b320569bdb0f9ada32eee43aaa2104dd1f50e64 /src/game/TemporarySummon.cpp
parentb39bff681f41b12c483d2fa0a58623bd26ff5871 (diff)
*Fix some problems with charmer removing started with rev 4402.
--HG-- branch : trunk
Diffstat (limited to 'src/game/TemporarySummon.cpp')
-rw-r--r--src/game/TemporarySummon.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp
index 42cf0f4c2ef..3382c794622 100644
--- a/src/game/TemporarySummon.cpp
+++ b/src/game/TemporarySummon.cpp
@@ -334,7 +334,8 @@ void Puppet::InitStats(uint32 duration)
void Puppet::InitSummon()
{
Minion::InitSummon();
- SetCharmedBy(m_owner, CHARM_TYPE_POSSESS);
+ if (!SetCharmedBy(m_owner, CHARM_TYPE_POSSESS))
+ assert(false);
}
void Puppet::Update(uint32 time)