From 666756026343a2a90e6b1760691a1feed80c730f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 23 Apr 2017 14:37:06 +0200 Subject: [PATCH] (iOS) Buildfix --- ui/drivers/cocoa/cocoatouch_menu.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/drivers/cocoa/cocoatouch_menu.m b/ui/drivers/cocoa/cocoatouch_menu.m index 1b438e84fb..e145a4e7eb 100644 --- a/ui/drivers/cocoa/cocoatouch_menu.m +++ b/ui/drivers/cocoa/cocoatouch_menu.m @@ -775,10 +775,8 @@ didSelectRowAtIndexPath:(NSIndexPath *)indexPath - (void)menuBack { #ifdef HAVE_MENU - size_t selection; menu_entry_t entry = {{0}}; - - menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, & selection); + size_t selection = menu_navigation_get_selection(); menu_entry_get(&entry, 0, selection, NULL, false); menu_entry_action(&entry, (unsigned int)selection, MENU_ACTION_CANCEL);