--- a/ui/common/menu.c Sun Jan 28 10:06:54 2024 +0100 +++ b/ui/common/menu.c Sun Jan 28 11:42:42 2024 +0100 @@ -237,6 +237,10 @@ void uic_add_menu_to_stack(UiMenu* menu) { + if (!current) { + current = cxLinkedListCreate(cxDefaultAllocator, NULL, CX_STORE_POINTERS); + } + cxListInsert(current, 0, menu); }