aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/timeout2.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/avalanche/timeout2.cpp b/engines/avalanche/timeout2.cpp
index cd6e4dc74f..4debd16653 100644
--- a/engines/avalanche/timeout2.cpp
+++ b/engines/avalanche/timeout2.cpp
@@ -214,11 +214,10 @@ void Timeout::one_tick() {
void Timeout::lose_timer(byte which) {
byte fv;
- for (fv = 1; fv <= 7; fv++) {
- timetype &with = times[fv];
- if (with.what_for == which)
- with.time_left = 0;
- } /* Cancel this one! */
+ for (fv = 0; fv < 7; fv++) {
+ if (times[fv].what_for == which)
+ times[fv].time_left = 0; // Cancel this one!
+ }
}
/*function timer_is_on(which:byte):boolean;