summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 6cecffcb91..b72808b510 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -300,14 +300,7 @@ bool settings_load_config(const char* file, bool apply)
300#endif 300#endif
301 if (settings[i].cfg_vals == NULL) 301 if (settings[i].cfg_vals == NULL)
302 { 302 {
303 int temp = atoi(value); 303 *(int*)settings[i].setting = atoi(value);
304 if (settings[i].flags&F_ALLOW_ARBITRARY_VALS ||
305 (temp >= settings[i].int_setting->min &&
306 temp <= settings[i].int_setting->max &&
307 temp % settings[i].int_setting->step == 0))
308 {
309 *(int*)settings[i].setting = temp;
310 }
311 } 304 }
312 else 305 else
313 { 306 {