aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-27 03:35:53 -0500
committermegamage <none@none>2009-08-27 03:35:53 -0500
commit405a054a132f8b071cef0dec55e1a17917146ea0 (patch)
tree0bfc0c31515d8e0985a1c95a826a1efd114444f8 /src
parent7cb2864d828d0f1f2ccd2fe15f23fa2ad28ae77e (diff)
*Fix a crash. Thanks to MaXiMiUS
--HG-- branch : trunk
Diffstat (limited to 'src')
-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 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)