*Init motionmaster before AI init. This fix some crash bug of script.
--HG-- branch : trunk
This commit is contained in:
@@ -604,8 +604,8 @@ bool Creature::AIM_Initialize(CreatureAI* ai)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(i_AI) delete i_AI;
|
if(i_AI) delete i_AI;
|
||||||
i_AI = ai ? ai : FactorySelector::selectAI(this);
|
|
||||||
i_motionMaster.Initialize();
|
i_motionMaster.Initialize();
|
||||||
|
i_AI = ai ? ai : FactorySelector::selectAI(this);
|
||||||
IsAIEnabled = true;
|
IsAIEnabled = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user