ITERATE_TYPE_DEFAULT - take out weird selection manipulation

This commit is contained in:
twinaphex 2015-09-26 22:48:56 +02:00
parent 377004dbf7
commit 12075b9cc1

View File

@ -481,8 +481,6 @@ int menu_iterate(bool render_this_frame, unsigned action)
BIT64_SET(menu->state, MENU_STATE_POST_ITERATE);
break;
case ITERATE_TYPE_DEFAULT:
selection = max(min(selection, menu_list_get_size(menu_list)-1), 0);
menu_entry_get(&entry, selection, NULL, false);
ret = menu_entry_action(&entry, selection, (enum menu_action)action);