diff --git a/src/table/settings/difficulty_settings.ini b/src/table/settings/difficulty_settings.ini index 358e613cef..4955a7ed14 100644 --- a/src/table/settings/difficulty_settings.ini +++ b/src/table/settings/difficulty_settings.ini @@ -114,7 +114,7 @@ def = 100 min = 10 max = 6000000 pre_cb = [](auto &new_value) { new_value = (new_value + 10 / 2) / 10 * 10; return true; } -post_cb = [](auto &new_value) { difficulity.max_loan = ((new_value/100)* 300000) * GetCurrency().rate; return true;} +post_cb = [](auto) { _settings_game.difficulty.max_loan = ((_settings_game.difficulty.max_loan_percentage/100)* 300000) * GetCurrency().rate;} interval = 10 str = STR_CONFIG_SETTING_MAXIMUM_INITIAL_LOAN strhelp = STR_CONFIG_SETTING_MAXIMUM_INITIAL_LOAN_HELPTEXT