diff --git a/lib/config/expression.cpp b/lib/config/expression.cpp index 03b2ceb61..5b26aa2ba 100644 --- a/lib/config/expression.cpp +++ b/lib/config/expression.cpp @@ -460,7 +460,8 @@ ExpressionResult DictExpression::DoEvaluate(ScriptFrame& frame, DebugHint *dhint result = element.GetValue(); } } catch (...) { - std::swap(self, frame.Self); + if (!m_Inline) + std::swap(self, frame.Self); throw; }