Fix ea9715d: not all setting values were clamped properly (#9401)

This commit is contained in:
SamuXarick
2021-06-27 23:58:54 +01:00
committed by GitHub
parent 59e96cd56a
commit 003b6a0c85

View File

@@ -439,7 +439,7 @@ void IntSettingDesc::MakeValueValid(int32 &val) const
uval = (uint32)this->def; uval = (uint32)this->def;
} }
} }
val = (int32)val; val = (int32)uval;
return; return;
} }
case SLE_VAR_I64: case SLE_VAR_I64: