[Menus] Small fix for unloaded menus
This commit is contained in:
parent
f75d8cee18
commit
aa9da9012e
@ -531,7 +531,7 @@ namespace Components
|
||||
Menus::RemoveMenuList(filename);
|
||||
}
|
||||
|
||||
if (menuList)
|
||||
if (menuList && reinterpret_cast<DWORD>(menuList) != 0xDDDDDDDD)
|
||||
{
|
||||
// Parse scriptmenus!
|
||||
if (menuList->menus[0]->window.name == "default_menu"s || Utils::String::EndsWith(filename, ".menu"))
|
||||
@ -552,6 +552,10 @@ namespace Components
|
||||
header.menuList = Menus::LoadMenuList(menuList);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header.menuList = nullptr;
|
||||
}
|
||||
|
||||
return header;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user