Handle condition stack on event handler closing parenthesis

This commit is contained in:
Jan
2021-11-06 19:30:36 +01:00
parent 54d7f75af6
commit 81203e523e
4 changed files with 35 additions and 7 deletions

View File

@ -2,9 +2,9 @@
using namespace menu;
MenuFileParserState::EventHandlerConditionState::EventHandlerConditionState(std::unique_ptr<CommonEventHandlerCondition> condition)
MenuFileParserState::EventHandlerConditionState::EventHandlerConditionState(CommonEventHandlerCondition* condition)
: m_in_condition_elements(true),
m_condition(std::move(condition))
m_condition(condition)
{
}
@ -14,6 +14,7 @@ MenuFileParserState::MenuFileParserState(const FeatureLevel featureLevel)
m_current_function(nullptr),
m_current_menu(nullptr),
m_current_item(nullptr),
m_current_event_handler_set(nullptr)
m_current_event_handler_set(nullptr),
m_current_nested_event_handler_set(nullptr)
{
}