[Menus] Don't load the default menu upon failure
This commit is contained in:
parent
a1374e59e0
commit
9377d12c07
@ -217,17 +217,17 @@ namespace Components
|
|||||||
|
|
||||||
if (menus.empty())
|
if (menus.empty())
|
||||||
{
|
{
|
||||||
// Try loading the original menu, if we can't load our custom one
|
// // Try loading the original menu, if we can't load our custom one
|
||||||
Game::menuDef_t* originalMenu = AssetHandler::FindOriginalAsset(Game::XAssetType::ASSET_TYPE_MENU, menudef->window.name).menu;
|
// Game::menuDef_t* originalMenu = AssetHandler::FindOriginalAsset(Game::XAssetType::ASSET_TYPE_MENU, menudef->window.name).menu;
|
||||||
|
//
|
||||||
if (originalMenu)
|
// if (originalMenu)
|
||||||
{
|
// {
|
||||||
menus.push_back(originalMenu);
|
// menus.push_back(originalMenu);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
menus.push_back(menudef);
|
menus.push_back(menudef);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
return menus;
|
return menus;
|
||||||
|
Loading…
Reference in New Issue
Block a user