diff options
author | uruk | 2013-08-11 02:06:11 +0200 |
---|---|---|
committer | uruk | 2013-08-11 02:06:11 +0200 |
commit | ee6119d07feea83718f7a3ce9073d92de2747750 (patch) | |
tree | 97495730046f282049a1fa97e27d9cde45b40173 | |
parent | c519ea0aa21e774e5a763cbfe98c78165cfcffbb (diff) | |
download | scummvm-rg350-ee6119d07feea83718f7a3ce9073d92de2747750.tar.gz scummvm-rg350-ee6119d07feea83718f7a3ce9073d92de2747750.tar.bz2 scummvm-rg350-ee6119d07feea83718f7a3ce9073d92de2747750.zip |
AVALANCHE: Repair Timeout::lose_timer().
-rw-r--r-- | engines/avalanche/timeout2.cpp | 9 |
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; |