Fix crash on macro load

This commit is contained in:
WarmUpTill 2025-07-05 19:30:44 +02:00 committed by WarmUpTill
parent 49c0de3f1b
commit f4eaa9785d

View File

@ -984,7 +984,7 @@ bool Macro::Load(obs_data_t *obj)
auto newEntry = MacroActionFactory::Create(id, this);
if (newEntry) {
_elseActions.emplace_back(newEntry);
auto action = _actions.back().get();
auto action = _elseActions.back().get();
action->WithLock([action, &arrayObj]() {
action->Load(arrayObj);
});