diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c index 4280ff9f7a..45e2a4e99f 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -851,7 +851,9 @@ void settings_reset(void) { { case F_T_INT: case F_T_UINT: - if (settings[i].flags&F_T_SOUND) + if (settings[i].flags&F_DEF_ISFUNC) + *(int*)settings[i].setting = settings[i].default_val.func(); + else if (settings[i].flags&F_T_SOUND) *(int*)settings[i].setting = sound_default(settings[i].sound_setting->setting); else *(int*)settings[i].setting = settings[i].default_val.int_; |