mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 03:01:02 +00:00
UPDATES: Fix interval normalization
When given a valid value the normalization was returning the next valid value instead of returning the given one. This caused for example the interval to be changed each time we opened the options (and thus check to be automatically activated the first time the options were accessed).
This commit is contained in:
parent
2502a4a9b2
commit
cede9e7734
@ -42,7 +42,7 @@ int UpdateManager::normalizeInterval(int interval) {
|
||||
const int *val = updateIntervals;
|
||||
|
||||
while (*val != -1) {
|
||||
if (*val > interval)
|
||||
if (*val >= interval)
|
||||
return *val;
|
||||
val++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user