fix(Core/Movement): Take TravelPath/WorldPosition by value in DispatchMovement

This commit is contained in:
bash 2026-05-31 18:20:45 +02:00
parent 2913db8964
commit 3f8aa0b6b3
2 changed files with 4 additions and 4 deletions

View File

@ -3009,8 +3009,8 @@ bool MovementAction::MoveTo2(WorldPosition endPos,
return dispatched; return dispatched;
} }
bool MovementAction::DispatchMovement(TravelPath const& path, bool MovementAction::DispatchMovement(TravelPath path,
WorldPosition const& dest, WorldPosition dest,
char const* label, char const* label,
MovementPriority priority, MovementPriority priority,
bool lessDelay) bool lessDelay)

View File

@ -91,8 +91,8 @@ protected:
// re-evaluation for the full move duration. Until combat dispatch is // re-evaluation for the full move duration. Until combat dispatch is
// restructured to bypass MoveTo2, the WaitForReach is deliberately // restructured to bypass MoveTo2, the WaitForReach is deliberately
// omitted. // omitted.
bool DispatchMovement(TravelPath const& path, bool DispatchMovement(TravelPath path,
WorldPosition const& dest, WorldPosition dest,
char const* label, char const* label,
MovementPriority priority = MovementPriority::MOVEMENT_NORMAL, MovementPriority priority = MovementPriority::MOVEMENT_NORMAL,
bool lessDelay = false); bool lessDelay = false);