diff options
author | uruk | 2013-07-25 22:42:41 +0200 |
---|---|---|
committer | uruk | 2013-07-25 22:42:41 +0200 |
commit | 395b917e94c4cc02035ec2e54cfe3e2b2074596c (patch) | |
tree | f225ed3fbcb0d3b0fbb9845fd6760ecf5a08e73f /engines | |
parent | 06bde8b277e0729c693243c2ba4d8566ff1e9012 (diff) | |
download | scummvm-rg350-395b917e94c4cc02035ec2e54cfe3e2b2074596c.tar.gz scummvm-rg350-395b917e94c4cc02035ec2e54cfe3e2b2074596c.tar.bz2 scummvm-rg350-395b917e94c4cc02035ec2e54cfe3e2b2074596c.zip |
AVALANCHE: Repair Timeout.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/avalanche/timeout2.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/avalanche/timeout2.cpp b/engines/avalanche/timeout2.cpp index b36f143eeb..647cfe4b46 100644 --- a/engines/avalanche/timeout2.cpp +++ b/engines/avalanche/timeout2.cpp @@ -49,7 +49,7 @@ namespace Avalanche { Timeout::Timeout(AvalancheEngine *vm) { _vm = vm; - for (int i = 0; i < sizeof(times); i++) { + for (byte i = 0; i < 7; i++) { times[i].time_left = 0; times[i].then_where = 0; times[i].what_for = 0; @@ -64,10 +64,10 @@ void Timeout::set_up_timer(int32 howlong, byte whither, byte why) { if (fv == 7) return; /* Oh dear... */ - timetype &with = times[fv]; /* Everything's OK here! */ - with.time_left = howlong; - with.then_where = whither; - with.what_for = why; + /* Everything's OK here! */ + times[fv].time_left = howlong; + times[fv].then_where = whither; + times[fv].what_for = why; } void Timeout::one_tick() { |