diff options
| author | megamage <none@none> | 2009-03-14 23:24:21 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-14 23:24:21 -0600 |
| commit | 8c1914a3aec8f8f02cdbc3646bf7e383eb775a3a (patch) | |
| tree | 7ec556f434c8f3ee473e68101a6727b0a1649506 /src | |
| parent | a2d1130804452878095f270cb91770445a824e61 (diff) | |
*Init motionmaster before AI init. This fix some crash bug of script.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
