diff options
Diffstat (limited to 'engines/avalanche/timeout2.cpp')
-rw-r--r-- | engines/avalanche/timeout2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/avalanche/timeout2.cpp b/engines/avalanche/timeout2.cpp index 7a10d670cc..b36f143eeb 100644 --- a/engines/avalanche/timeout2.cpp +++ b/engines/avalanche/timeout2.cpp @@ -57,11 +57,11 @@ Timeout::Timeout(AvalancheEngine *vm) { } void Timeout::set_up_timer(int32 howlong, byte whither, byte why) { - fv = 1; - while ((fv < 8) && (times[fv].time_left != 0)) - fv += 1; + fv = 0; + while ((fv < 7) && (times[fv].time_left != 0)) + fv++; - if (fv == 8) + if (fv == 7) return; /* Oh dear... */ timetype &with = times[fv]; /* Everything's OK here! */ |