diff options
author | Thierry Crozat | 2016-04-09 21:46:51 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-04-09 21:47:20 +0100 |
commit | cede9e773424e82ff327b3c972c3308b09daf96a (patch) | |
tree | a2e0e371ede9f843299130b37d3edfdca067af55 /common | |
parent | 2502a4a9b2f1cf27c1765bbe1df027fd27fdd353 (diff) | |
download | scummvm-rg350-cede9e773424e82ff327b3c972c3308b09daf96a.tar.gz scummvm-rg350-cede9e773424e82ff327b3c972c3308b09daf96a.tar.bz2 scummvm-rg350-cede9e773424e82ff327b3c972c3308b09daf96a.zip |
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).
Diffstat (limited to 'common')
-rw-r--r-- | common/updates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/updates.cpp b/common/updates.cpp index 4174a96c56..087002a7d3 100644 --- a/common/updates.cpp +++ b/common/updates.cpp @@ -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++; } |