Replace the default value when applying low end defaults so reset button works properly.

This commit is contained in:
Dario 2025-02-10 20:43:52 -03:00
parent fb55ac1087
commit 1e370c5415

View file

@ -1562,9 +1562,11 @@ static void BeginCommandList()
template<typename T>
static void ApplyLowEndDefault(ConfigDef<T> &configDef, T newDefault, bool &changed)
{
configDef.DefaultValue = newDefault;
if (configDef.IsDefaultValue() && !configDef.IsLoadedFromConfig)
{
configDef = newDefault;
configDef.MakeDefault();
changed = true;
}
}