*Fix a crash. Thanks to MaXiMiUS

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-27 03:35:53 -05:00
parent 7cb2864d82
commit 405a054a13
+2 -1
View File
@@ -216,9 +216,10 @@ void TempSummon::InitSummon()
{
if(owner->GetTypeId()==TYPEID_UNIT && ((Creature*)owner)->IsAIEnabled)
((Creature*)owner)->AI()->JustSummoned(this);
}
if(IsAIEnabled)
AI()->IsSummonedBy(owner);
}
}
void TempSummon::SetTempSummonType(TempSummonType type)
{