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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: