From 405a054a132f8b071cef0dec55e1a17917146ea0 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 27 Aug 2009 03:35:53 -0500 Subject: [PATCH] *Fix a crash. Thanks to MaXiMiUS --HG-- branch : trunk --- src/game/TemporarySummon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp index da039c2276..0b31eea970 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)