mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
UPDATES: Fix endless loop
This commit is contained in:
parent
717840b006
commit
0925e9cd29
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user