mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
*Fix a crash. Thanks to Amok
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -383,7 +383,6 @@ class TRINITY_DLL_SPEC WorldObject : public Object
|
||||
|
||||
void Relocate(float x, float y, float z, float orientation)
|
||||
{
|
||||
assert(orientation > -100 && orientation < 100);
|
||||
m_positionX = x;
|
||||
m_positionY = y;
|
||||
m_positionZ = z;
|
||||
@@ -403,7 +402,7 @@ class TRINITY_DLL_SPEC WorldObject : public Object
|
||||
Relocate(loc.x, loc.y, loc.z, loc.o);
|
||||
}
|
||||
|
||||
void SetOrientation(float orientation) { assert(orientation > -100 && orientation < 100); m_orientation = orientation; }
|
||||
void SetOrientation(float orientation) { m_orientation = orientation; }
|
||||
|
||||
float GetPositionX( ) const { return m_positionX; }
|
||||
float GetPositionY( ) const { return m_positionY; }
|
||||
|
||||
Reference in New Issue
Block a user