diff --git a/src/game/HomeMovementGenerator.cpp b/src/game/HomeMovementGenerator.cpp index bca9c2a798..aa008d3e47 100644 --- a/src/game/HomeMovementGenerator.cpp +++ b/src/game/HomeMovementGenerator.cpp @@ -52,7 +52,7 @@ void HomeMovementGenerator::_setTargetLocation(Creature& owner) init.Launch(); arrived = false; - owner.clearUnitState(UNIT_STAT_ALL_STATE); + owner.clearUnitState(UNIT_STAT_ALL_DYN_STATES); } bool HomeMovementGenerator::Update(Creature& owner, const uint32& time_diff) diff --git a/src/game/Unit.h b/src/game/Unit.h index 048d874f95..bd4b959074 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -467,7 +467,8 @@ enum UnitState UNIT_STAT_RUNNING_STATE = UNIT_STAT_CHASE_MOVE | UNIT_STAT_FLEEING_MOVE | UNIT_STAT_RUNNING, - UNIT_STAT_ALL_STATE = 0xFFFFFFFF + UNIT_STAT_ALL_STATE = 0xFFFFFFFF, + UNIT_STAT_ALL_DYN_STATES = UNIT_STAT_ALL_STATE & ~(UNIT_STAT_NO_COMBAT_MOVEMENT | UNIT_STAT_RUNNING | UNIT_STAT_WAYPOINT_PAUSED | UNIT_STAT_IGNORE_PATHFINDING), }; enum UnitMoveType diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2c500a4676..69dd54cbcb 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "12681" + #define REVISION_NR "12682" #endif // __REVISION_NR_H__