mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix crash when actions were copied into a action queue
The steps added via AddPostLoadStep() from the copy were never executed. Thus they might be invalid when RunPostLoadSteps() is next called. This could result in a crash when a new action or condition is added after e.g. a "Filter" action's TempVariableRef was copied, which adds a PostLoadStep to resolve the macro segment reference.
This commit is contained in:
parent
816ee9b244
commit
2986a5dd96
|
|
@ -113,6 +113,7 @@ void ActionQueue::Add(const std::shared_ptr<MacroAction> &action)
|
|||
action->Save(data);
|
||||
copy->Load(data);
|
||||
copy->PostLoad();
|
||||
RunPostLoadSteps();
|
||||
copy->ResolveVariablesToFixedValues();
|
||||
_actions.emplace_back(copy);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user