mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-15 17:27:57 -05:00
Add menu scopes to state before closing them
This commit is contained in:
@ -19,6 +19,10 @@ GenericMenuEventHandlerSetPropertySequence::GenericMenuEventHandlerSetPropertySe
|
||||
|
||||
void GenericMenuEventHandlerSetPropertySequence::ProcessMatch(MenuFileParserState* state, SequenceResult<SimpleParserValue>& result) const
|
||||
{
|
||||
state->m_current_event_handler_set = std::make_unique<CommonEventHandlerSet>();
|
||||
state->m_event_handler_set_callback = m_set_callback;
|
||||
if (m_set_callback)
|
||||
{
|
||||
auto newEventHandlerSet = std::make_unique<CommonEventHandlerSet>();
|
||||
state->m_current_event_handler_set = newEventHandlerSet.get();
|
||||
m_set_callback(state, std::move(newEventHandlerSet));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user