mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-19 03:07:58 -05:00
Add menu scopes to state before closing them
This commit is contained in:
@ -29,8 +29,7 @@ namespace menu::function_scope_sequences
|
||||
const auto existingFunction = state->m_functions_by_name.find(state->m_current_function->m_name);
|
||||
if (existingFunction == state->m_functions_by_name.end())
|
||||
{
|
||||
state->m_functions_by_name.emplace(std::make_pair(state->m_current_function->m_name, state->m_current_function.get()));
|
||||
state->m_functions.emplace_back(std::move(state->m_current_function));
|
||||
state->m_functions_by_name.emplace(std::make_pair(state->m_current_function->m_name, state->m_current_function));
|
||||
state->m_current_function = nullptr;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user