Clean up last commit

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-10-31 03:35:34 +01:00
parent 717f1aefc9
commit 22f349d2b5
+1 -1
View File
@@ -10617,7 +10617,7 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
// Set home position at place of engaging combat for escorted creatures
if(( IsAIEnabled && ((Creature*)this)->AI()->IsEscorted() ) ||
GetMotionMaster()->GetCurrentMovementGeneratorType() == WAYPOINT_MOTION_TYPE ||
((Creature*)this)->GetMotionMaster()->GetCurrentMovementGeneratorType() == POINT_MOTION_TYPE)
GetMotionMaster()->GetCurrentMovementGeneratorType() == POINT_MOTION_TYPE)
((Creature*)this)->SetHomePosition(GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation());
if (enemy)