From da145736269f5484936499b5027d1a327fc10ad1 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Thu, 31 May 2018 16:57:00 +0200 Subject: [PATCH] wb: fixup "fix incorrect handling of skirmisher." (cherry-picked from commit 9cc32ebc46a006b70916572594c08cacfaad6571) --- src/whiteboard/move.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whiteboard/move.cpp b/src/whiteboard/move.cpp index 02c6eada5f5a..ae8daee7ece1 100644 --- a/src/whiteboard/move.cpp +++ b/src/whiteboard/move.cpp @@ -354,7 +354,7 @@ void move::apply_temp_modifier(unit_map& unit_map) if (route_->move_cost == -1) { // TODO: check_validity also calls pathfind::mark_route(get_route().route), optimize/refactor this to only call that once. - route_->move_cost = pathfind::mark_route(get_route().route).move_cost; + route_->move_cost = pathfind::mark_route(get_route().route, true).move_cost; } //Modify movement points DBG_WB <<"Move: Changing movement points for unit " << unit->name() << " [" << unit->id()