aboutsummaryrefslogtreecommitdiff
path: root/common/updates.cpp
diff options
context:
space:
mode:
authorThierry Crozat2016-04-09 21:46:51 +0100
committerThierry Crozat2016-04-09 21:47:20 +0100
commitcede9e773424e82ff327b3c972c3308b09daf96a (patch)
treea2e0e371ede9f843299130b37d3edfdca067af55 /common/updates.cpp
parent2502a4a9b2f1cf27c1765bbe1df027fd27fdd353 (diff)
downloadscummvm-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/updates.cpp')
-rw-r--r--common/updates.cpp2
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++;
}