From 8c1914a3aec8f8f02cdbc3646bf7e383eb775a3a Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 14 Mar 2009 23:24:21 -0600 Subject: *Init motionmaster before AI init. This fix some crash bug of script. --HG-- branch : trunk --- src/game/Creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Creature.cpp') diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 51f24389c95..66ae42aec16 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -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; } -- cgit v1.2.3