mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-14 08:47:57 -05:00
Do not parse menus more than once when they have already been parsed
This commit is contained in:
@ -12,3 +12,8 @@ void MenuAssetZoneState::AddMenu(std::unique_ptr<CommonMenuDef> menu)
|
||||
{
|
||||
m_menus.emplace_back(std::move(menu));
|
||||
}
|
||||
|
||||
void MenuAssetZoneState::AddMenusToLoad(std::string menuName, std::vector<std::string> menusToLoad)
|
||||
{
|
||||
m_menus_to_load_by_menu.emplace(std::make_pair(std::move(menuName), std::move(menusToLoad)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user