diff --git a/src/ai/formula/function_table.cpp b/src/ai/formula/function_table.cpp index 0eca893b63b..8541c8bdaef 100644 --- a/src/ai/formula/function_table.cpp +++ b/src/ai/formula/function_table.cpp @@ -1153,7 +1153,7 @@ private: } for (std::vector::const_iterator loc_iter = route.steps.begin() + 1 ; loc_iter !=route.steps.end(); ++loc_iter) { - if (unit_it->movement_cost((*resources::game_map)[*loc_iter]) < 99 ) + if (unit_it->movement_cost((*resources::game_map)[*loc_iter]) < unit_movement_type::UNREACHABLE ) locations.push_back( variant( new location_callable(*loc_iter) )); else break;