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;
}
bool MovementAction::DispatchMovement(TravelPath const& path,
WorldPosition const& dest,
bool MovementAction::DispatchMovement(TravelPath path,
WorldPosition dest,
char const* label,
MovementPriority priority,
bool lessDelay)

View File

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