diff options
author | Blaymoira <none@none> | 2009-03-06 20:14:07 +0100 |
---|---|---|
committer | Blaymoira <none@none> | 2009-03-06 20:14:07 +0100 |
commit | b49732c04db0d5bf67bf78e73e9c22f2078fd47c (patch) | |
tree | e445fa32d805789d966505ffac97535152e852f6 /src/game/TemporarySummon.cpp | |
parent | ba05670747d7f5cc91ce4e623f2b89ba60e8081e (diff) | |
parent | 0b9d3f95de06da9e23bdd075a286679395dab49c (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 d30ad9ec56e..bbe8fa9c104 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); } |