From ba154d07b957f0dee38dc07a4c38c6b2910a916c Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Mon, 15 Feb 2016 17:58:40 +0100 Subject: [PATCH] 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. --- src/mouse_events.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mouse_events.cpp b/src/mouse_events.cpp index ff76d3d6dbe..af4fb6e3c83 100644 --- a/src/mouse_events.cpp +++ b/src/mouse_events.cpp @@ -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_