fixed illegal memory access

This commit is contained in:
uid68803 2004-02-17 20:14:08 +00:00
parent 08d5b38420
commit a1f2941f5e
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ const team& ai_interface::current_team() const
}
void ai_interface::move_unit(const location& from, const location& to, std::map<location,paths>& possible_moves)
void ai_interface::move_unit(location from, location to, std::map<location,paths>& possible_moves)
{
assert(info_.units.find(to) == info_.units.end() || from == to);

View file

@ -52,7 +52,7 @@ public:
protected:
void attack_enemy(const location& u, const location& target, int weapon);
void move_unit(const location& from, const location& to, std::map<location,paths>& possible_moves);
void move_unit(location from, location to, std::map<location,paths>& possible_moves);
void calculate_possible_moves(std::map<location,paths>& moves, move_map& srcdst, move_map& dstsrc, bool enemy, bool assume_full_movement=false);