From e3e4f9ef8e550719581fbb6cc1cff78a0a1461c0 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Thu, 21 May 2009 08:26:12 +0000 Subject: [PATCH] Simplify --- src/gui-sdl/gui-sdl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui-sdl/gui-sdl.c b/src/gui-sdl/gui-sdl.c index b0c8e82..a5eb81d 100644 --- a/src/gui-sdl/gui-sdl.c +++ b/src/gui-sdl/gui-sdl.c @@ -258,6 +258,7 @@ static void amiga_model_options(void) int opt; memset(submenus, 0, sizeof(submenus)); + submenus[1] = currprefs.cpu_cycle_exact; opt = menu_select_title("Amiga model menu", amiga_model_messages, submenus); if (opt < 0) @@ -272,7 +273,7 @@ static void amiga_model_options(void) break; } /* Cycle-exact or not? */ - changed_prefs.cpu_cycle_exact = submenus[1] == 0 ? 0 : 1; + changed_prefs.cpu_cycle_exact = submenus[1]; } static void save_load_state(int which)