wb: fixup "fix incorrect handling of skirmisher."

This commit is contained in:
gfgtdf 2018-05-31 16:57:00 +02:00 committed by GitHub
parent ee638bc892
commit b0dffebe80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()