From 2d390ae5ce21fe0544425af42d5f0f271bf55e94 Mon Sep 17 00:00:00 2001 From: Raf <> Date: Thu, 4 Dec 2025 18:55:52 +0800 Subject: [PATCH] small code simplification --- port/src/optionsmenu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/port/src/optionsmenu.c b/port/src/optionsmenu.c index 415ff6331..761b80e8f 100644 --- a/port/src/optionsmenu.c +++ b/port/src/optionsmenu.c @@ -1975,9 +1975,8 @@ void updateMaxAnisotropyLevel() for (int i = 0; i < ARRAYCOUNT(g_ExtendedVideoMenuItems); ++i) { struct menuitem *item = &g_ExtendedVideoMenuItems[i]; const char *text = menuResolveParam2Text(item); - if (text == NULL) continue; - - if (strstr(text, "Anisotropic Filtering") != NULL) { + + if (text && strstr(text, "Anisotropic Filtering") != NULL) { item->param3 = videoGetMaxAnisotropyLevel(); break; }