Fix a bug in weighted-settings causing accepted range values to be exclusive of outer range (#2535)

This commit is contained in:
Chris Wilson 2023-11-29 22:57:40 -05:00 committed by GitHub
parent 6c5f8250fb
commit a83501a2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ class GameSettings {
option = parseInt(option, 10);
let optionAcceptable = false;
if ((option > setting.min) && (option < setting.max)) {
if ((option >= setting.min) && (option <= setting.max)) {
optionAcceptable = true;
}
if (setting.hasOwnProperty('value_names') && Object.values(setting.value_names).includes(option)){