fix assertion failure and OOS when attacking with DSU active

undo_stack.clear() shouldn't be called from outside the synced contect
since it might fire sigted events and similar.

The attack handle in synced_commands.cpp already calls clear() so its
enought to just rmeove it here.
This commit is contained in:
gfgtdf 2016-02-15 17:58:40 +01:00
parent 6e0f8ed6d7
commit ba154d07b9

View File

@ -1010,9 +1010,6 @@ void mouse_handler::attack_enemy_(const map_location& att_loc
const map_location attacker_loc = att_loc;
const map_location defender_loc = def_loc;
//may fire event and modify things
pc_.get_undo_stack().clear();
unit_map::iterator attacker = find_unit(attacker_loc);
if(!attacker
|| attacker->side() != side_num_