*Fix a crash. Thanks to Amok

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-30 17:17:05 -05:00
parent 76d0498aae
commit b5778357d9
2 changed files with 3 additions and 2 deletions

View File

@@ -28,6 +28,8 @@
void
HomeMovementGenerator<Creature>::Initialize(Creature & owner)
{
float x, y, z;
owner.GetHomePosition(x, y, z, ori);
owner.RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
_setTargetLocation(owner);
}