aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-31 09:18:39 -0600
committermegamage <none@none>2009-03-31 09:18:39 -0600
commit031df598ab444ae4ed3d3d66996168d3577fb29d (patch)
treeb85408862f7001e8dc43447bc74bd77ce817e93e /src/game/Creature.cpp
parentbe89c6bb2a6a2c5f1a62e2010a9ee97efb8529b2 (diff)
*Try to fix crash.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-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 538a755e8ad..fa82c3b1eac 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -174,6 +174,7 @@ void Creature::AddToWorld()
{
ObjectAccessor::Instance().AddObject(this);
Unit::AddToWorld();
+ AIM_Initialize();
SearchFormation();
}
}
@@ -1451,7 +1452,6 @@ bool Creature::LoadFromDB(uint32 guid, Map *map)
// checked at creature_template loading
m_defaultMovementType = MovementGeneratorType(data->movementType);
- AIM_Initialize();
return true;
}