diff --git a/src/ai/testing/ca.cpp b/src/ai/testing/ca.cpp index c40ca2e85db..32ee4ff6fa3 100644 --- a/src/ai/testing/ca.cpp +++ b/src/ai/testing/ca.cpp @@ -816,7 +816,7 @@ double get_villages_phase::evaluate() { moves_.clear(); unit_map::const_iterator leader = resources::units->find_leader(get_side()); - get_villages(get_possible_moves(),get_dstsrc(),get_enemy_dstsrc(),leader); + get_villages(get_dstsrc(),get_enemy_dstsrc(),leader); if (moves_.size()>0) { return get_score(); } @@ -874,7 +874,7 @@ void get_villages_phase::execute() return; } -void get_villages_phase::get_villages(const moves_map& possible_moves, +void get_villages_phase::get_villages( const move_map& dstsrc, const move_map& enemy_dstsrc, unit_map::const_iterator &leader) { @@ -905,7 +905,7 @@ void get_villages_phase::get_villages(const moves_map& possible_moves, DBG_AI_TESTING_AI_DEFAULT << reachmap.size() << " units found who can try to capture a village.\n"; - find_villages(reachmap, moves_, dstsrc, possible_moves, enemy_dstsrc); + find_villages(reachmap, moves_, dstsrc, enemy_dstsrc); treachmap::iterator itor = reachmap.begin(); while(itor != reachmap.end()) { @@ -936,7 +936,6 @@ void get_villages_phase::find_villages( treachmap& reachmap, tmoves& moves, const std::multimap& dstsrc, - const std::map& /*possible_moves*/, const std::multimap& enemy_dstsrc) { diff --git a/src/ai/testing/ca.hpp b/src/ai/testing/ca.hpp index 5430e531295..0f420938539 100644 --- a/src/ai/testing/ca.hpp +++ b/src/ai/testing/ca.hpp @@ -249,7 +249,7 @@ private: void dump_reachmap(treachmap& reachmap); - void get_villages(const moves_map &possible_moves, + void get_villages( const move_map &dstsrc, const move_map &enemy_dstsrc, unit_map::const_iterator &leader); @@ -258,7 +258,6 @@ private: treachmap& reachmap, tmoves& moves, const std::multimap& dstsrc, - const std::map& possible_moves, const std::multimap& enemy_dstsrc); };