summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/gui/option_select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index c3c2cb3c63..023f9b47e5 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -246,7 +246,7 @@ void option_select_next_val(const struct settings_list *setting,
val = info->max;
}
if (apply && info->option_callback)
- info->option_callback(*(int*)value);
+ info->option_callback(val);
}
else if ((setting->flags & F_T_SOUND) == F_T_SOUND)
{
@@ -284,7 +284,7 @@ void option_select_next_val(const struct settings_list *setting,
val = info->count-1;
}
if (apply && info->option_callback)
- info->option_callback(*(int*)value);
+ info->option_callback(val);
}
else if ((setting->flags & F_TABLE_SETTING) == F_TABLE_SETTING)
{