diff options
| author | megamage <none@none> | 2009-03-06 18:09:01 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-06 18:09:01 -0600 |
| commit | 7915fd768a34604f6edf6be63bdf77fb2663d556 (patch) | |
| tree | 372241b979bda672dcc03c9f203a1928848bc553 /src/game/TemporarySummon.cpp | |
| parent | 13fc3dcd7e95288cd9482e7440df3b15a3c580cb (diff) | |
| parent | b49732c04db0d5bf67bf78e73e9c22f2078fd47c (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); } |
