diff options
| author | megamage <none@none> | 2009-03-06 19:52:46 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-06 19:52:46 -0600 |
| commit | f6ca5c601ef6089220fb0bfe3bc155fbbf3de812 (patch) | |
| tree | b9598e93d132aea806527aa4de13046e3c80dc5d /src/game/TemporarySummon.cpp | |
| parent | dbb8c78394660c277f9056d899df8b0f9f1f8cb0 (diff) | |
| parent | 4f6c96b98c5d5a065f902aa6106c928bf0b2a668 (diff) | |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/TemporarySummon.cpp')
| -rw-r--r-- | src/game/TemporarySummon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index 147133bd362..f8daff972d8 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -176,7 +176,7 @@ void TemporarySummon::UnSummon() AddObjectToRemoveList(); Unit* sum = m_summoner ? ObjectAccessor::GetUnit(*this, m_summoner) : NULL; - if (sum && sum->GetTypeId() == TYPEID_UNIT && ((Creature*)sum)->AI()) + if (sum && sum->GetTypeId() == TYPEID_UNIT && ((Creature*)sum)->IsAIEnabled) { ((Creature*)sum)->AI()->SummonedCreatureDespawn(this); } |
