mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 16:22:05 +00:00
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:
parent
6e0f8ed6d7
commit
ba154d07b9
@ -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_
|
||||
|
Loading…
x
Reference in New Issue
Block a user