*Init motionmaster before AI init. This fix some crash bug of script.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-14 23:24:21 -06:00
parent a2d1130804
commit 8c1914a3ae

View File

@@ -604,8 +604,8 @@ bool Creature::AIM_Initialize(CreatureAI* ai)
}
if(i_AI) delete i_AI;
i_AI = ai ? ai : FactorySelector::selectAI(this);
i_motionMaster.Initialize();
i_AI = ai ? ai : FactorySelector::selectAI(this);
IsAIEnabled = true;
return true;
}