mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Add update_cards_scripts
This commit is contained in:
@@ -400,8 +400,10 @@ String BulkAction::getName(bool to_undo) const {
|
||||
return to_undo ? name_undo : name_do;
|
||||
}
|
||||
|
||||
void BulkAction::perform(bool to_undo) {
|
||||
FOR_EACH(action, actions) {
|
||||
void BulkAction::perform(bool to_undo) {
|
||||
size_t size = actions.size();
|
||||
for (size_t i = 0 ; i < size ; ++i) {
|
||||
ActionP& action = actions[to_undo ? size - i - 1 : i];
|
||||
action->perform(to_undo);
|
||||
set->actions.tellListeners(*action, to_undo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user