diff --git a/src/actions.cpp b/src/actions.cpp index 253490863e0..6b0da849020 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -1348,7 +1348,7 @@ void calculate_healing(display& disp, const gamemap& map, unit_map::iterator potential_healer = units.find(h_it->second); wassert(potential_healer != units.end()); if(teams[potential_healer->second.side()-1].is_enemy(side)) { - heal.cfgs.erase(h_it); + h_it = heal.cfgs.erase(h_it); } else { ++h_it; }