aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-09-05 01:30:56 +0200
committerStrangerke2013-09-05 01:30:56 +0200
commit17033bdc2d1fb27e25342ad3afb69bb00750a4fc (patch)
tree66165aab187ac4cd1daf575aba44931105fb87ce
parentb52c873c5bb764b9385d46a3d77ac44a79ecee12 (diff)
downloadscummvm-rg350-17033bdc2d1fb27e25342ad3afb69bb00750a4fc.tar.gz
scummvm-rg350-17033bdc2d1fb27e25342ad3afb69bb00750a4fc.tar.bz2
scummvm-rg350-17033bdc2d1fb27e25342ad3afb69bb00750a4fc.zip
AVALANCHE: Fix uninitialized variable
-rw-r--r--engines/avalanche/gyro2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/avalanche/gyro2.cpp b/engines/avalanche/gyro2.cpp
index ae954d8e3c..9202e826fa 100644
--- a/engines/avalanche/gyro2.cpp
+++ b/engines/avalanche/gyro2.cpp
@@ -249,9 +249,11 @@ Gyro::Gyro(AvalancheEngine *vm) : interrogation(0), oncandopageswap(true) {
_vm = vm;
/* Needed becouse of Lucerna::load_also() */
- for (int fv = 0; fv < 31; fv++)
+ for (int fv = 0; fv < 31; fv++) {
for (int ff = 0; ff < 2; ff++)
also[fv][ff] = 0;
+ }
+ dna.total_time = 0;
}
Gyro::~Gyro() {