fix OOS when undoing after deactivating DSU

backports 730dcfdd0b
This commit is contained in:
gfgtdf 2015-02-23 19:07:38 +01:00
parent bb28225dae
commit f276e408ad

View file

@ -333,9 +333,6 @@ SYNCED_COMMAND_HANDLER_FUNCTION(auto_shroud, child, use_undo, /*show*/, /*error
team &current_team = (*resources::teams)[current_team_num - 1];
bool active = child["active"].to_bool();
// Turning on automatic shroud causes vision to be updated.
if ( active )
resources::undo_stack->commit_vision();
current_team.set_auto_shroud_updates(active);
return true;