diff --git a/src/Components/Modules/Menus.cpp b/src/Components/Modules/Menus.cpp index 636474d3..01a6473e 100644 --- a/src/Components/Modules/Menus.cpp +++ b/src/Components/Modules/Menus.cpp @@ -531,7 +531,7 @@ namespace Components Menus::RemoveMenuList(filename); } - if (menuList) + if (menuList && reinterpret_cast(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; }