diff --git a/lib/macro/macro-action-macro.cpp b/lib/macro/macro-action-macro.cpp index e1bfcc85..ff7d77ab 100644 --- a/lib/macro/macro-action-macro.cpp +++ b/lib/macro/macro-action-macro.cpp @@ -310,6 +310,15 @@ void MacroActionMacro::ResolveVariablesToFixedValues() { _actionIndex.ResolveVariables(); _label.ResolveVariables(); + + if (_action == Action::NESTED_MACRO) { + for (auto &action : _nestedMacro->Actions()) { + action->ResolveVariablesToFixedValues(); + } + for (auto &action : _nestedMacro->ElseActions()) { + action->ResolveVariablesToFixedValues(); + } + } } static void runActionsHelper(Macro *macro, bool runElseActions, bool setInputs,