diff options
author | megamage <none@none> | 2009-08-27 03:35:53 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-27 03:35:53 -0500 |
commit | 405a054a132f8b071cef0dec55e1a17917146ea0 (patch) | |
tree | 0bfc0c31515d8e0985a1c95a826a1efd114444f8 /src | |
parent | 7cb2864d828d0f1f2ccd2fe15f23fa2ad28ae77e (diff) |
*Fix a crash. Thanks to MaXiMiUS
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/TemporarySummon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index da039c2276c..0b31eea9707 100644 --- a/src/game/TemporarySummon.cpp +++ b/src/game/TemporarySummon.cpp @@ -216,8 +216,9 @@ void TempSummon::InitSummon() { if(owner->GetTypeId()==TYPEID_UNIT && ((Creature*)owner)->IsAIEnabled) ((Creature*)owner)->AI()->JustSummoned(this); + if(IsAIEnabled) + AI()->IsSummonedBy(owner); } - AI()->IsSummonedBy(owner); } void TempSummon::SetTempSummonType(TempSummonType type) |