mirror of https://github.com/OpenTTD/OpenTTD.git
Fix ea9715d: not all setting values were clamped properly (#9401)
This commit is contained in:
parent
59e96cd56a
commit
003b6a0c85
|
@ -439,7 +439,7 @@ void IntSettingDesc::MakeValueValid(int32 &val) const
|
|||
uval = (uint32)this->def;
|
||||
}
|
||||
}
|
||||
val = (int32)val;
|
||||
val = (int32)uval;
|
||||
return;
|
||||
}
|
||||
case SLE_VAR_I64:
|
||||
|
|
Loading…
Reference in New Issue