*Fix a crash. Thanks to MaXiMiUS
--HG-- branch : trunk
This commit is contained in:
@@ -216,9 +216,10 @@ void TempSummon::InitSummon()
|
|||||||
{
|
{
|
||||||
if(owner->GetTypeId()==TYPEID_UNIT && ((Creature*)owner)->IsAIEnabled)
|
if(owner->GetTypeId()==TYPEID_UNIT && ((Creature*)owner)->IsAIEnabled)
|
||||||
((Creature*)owner)->AI()->JustSummoned(this);
|
((Creature*)owner)->AI()->JustSummoned(this);
|
||||||
}
|
if(IsAIEnabled)
|
||||||
AI()->IsSummonedBy(owner);
|
AI()->IsSummonedBy(owner);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void TempSummon::SetTempSummonType(TempSummonType type)
|
void TempSummon::SetTempSummonType(TempSummonType type)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user