[Menus] Fix menu crash
This commit is contained in:
parent
90c646e698
commit
9c66d49f72
@ -530,7 +530,7 @@ namespace Components
|
|||||||
if (menuList && reinterpret_cast<DWORD>(menuList) != 0xDDDDDDDD)
|
if (menuList && reinterpret_cast<DWORD>(menuList) != 0xDDDDDDDD)
|
||||||
{
|
{
|
||||||
// Parse scriptmenus!
|
// Parse scriptmenus!
|
||||||
if (menuList->menus[0]->window.name == "default_menu"s || Utils::String::EndsWith(filename, ".menu"))
|
if (menuList->menuCount > 0 && menuList->menus[0] && menuList->menus[0]->window.name == "default_menu"s || Utils::String::EndsWith(filename, ".menu"))
|
||||||
{
|
{
|
||||||
if (FileSystem::File(filename).exists())
|
if (FileSystem::File(filename).exists())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user