diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/updates.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/updates.cpp b/common/updates.cpp index 552324ef5a..4174a96c56 100644 --- a/common/updates.cpp +++ b/common/updates.cpp @@ -41,9 +41,11 @@ const int *UpdateManager::getUpdateIntervals() { int UpdateManager::normalizeInterval(int interval) { const int *val = updateIntervals; - while (*val != -1) + while (*val != -1) { if (*val > interval) return *val; + val++; + } return val[-1]; // Return maximal acceptable value } |