aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Creature.cpp2
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;
}