Fix menu switch icon correction crash (#14774)

This commit is contained in:
sonninnos 2022-12-27 22:41:49 +02:00 committed by GitHub
parent 86742b5563
commit 3092fda58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -469,7 +469,8 @@ void menu_entry_get(menu_entry_t *entry, size_t stack_idx,
/* Inspect core options and set entries with only 2 options as
* boolean for accurate graphical switch icons */
if (entry->type >= MENU_SETTINGS_CORE_OPTION_START)
if ( entry->type >= MENU_SETTINGS_CORE_OPTION_START
&& entry->type < MENU_SETTINGS_CHEEVOS_START)
{
struct core_option *option = NULL;
core_option_manager_t *coreopts = NULL;