[Menus] Small fix for unloaded menus

This commit is contained in:
momo5502 2016-11-13 20:53:27 +01:00
parent f75d8cee18
commit aa9da9012e

View File

@ -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;
}