mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 12:21:39 +00:00
Replace the default value when applying low end defaults so reset button works properly.
This commit is contained in:
parent
fb55ac1087
commit
1e370c5415
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue