aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2013-07-04 18:27:59 +0200
committeruruk2013-07-04 18:27:59 +0200
commitd27a3e07f7250ea7d8ca6304095b882adc4f22b7 (patch)
treef491b06fcca1a45c07bb2e6bb6ba45747be8fbb2 /engines/avalanche
parent78befcb24aec615b9124b43178afd7e2fb0df5d6 (diff)
downloadscummvm-rg350-d27a3e07f7250ea7d8ca6304095b882adc4f22b7.tar.gz
scummvm-rg350-d27a3e07f7250ea7d8ca6304095b882adc4f22b7.tar.bz2
scummvm-rg350-d27a3e07f7250ea7d8ca6304095b882adc4f22b7.zip
AVALANCHE: Gyro: expand initialization.
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/gyro2.cpp5
-rw-r--r--engines/avalanche/gyro2.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/avalanche/gyro2.cpp b/engines/avalanche/gyro2.cpp
index 078eb1c14d..2dd2a28e0b 100644
--- a/engines/avalanche/gyro2.cpp
+++ b/engines/avalanche/gyro2.cpp
@@ -247,6 +247,11 @@ const char Gyro::betterchar[] = "WMBParCLguKeSnIohn";
Gyro::Gyro() : interrogation(0), oncandopageswap(true) {
for (int i = 0; i < 29; i++)
whereis[i] = static_const_whereis[i];
+
+ /* Needed becouse of Lucerna::load_also() */
+ for (int fv = 0; fv < 31; fv++)
+ for (int ff = 0; ff < 2; ff++)
+ also[fv][ff] = 0;
}
Gyro::~Gyro() {
diff --git a/engines/avalanche/gyro2.h b/engines/avalanche/gyro2.h
index 4aab2236da..e83e0a96b9 100644
--- a/engines/avalanche/gyro2.h
+++ b/engines/avalanche/gyro2.h
@@ -530,7 +530,7 @@ public:
byte cmp; /* current mouse-void **/
Common::String verbstr; /* what you can do with your object. :-) */
- Common::String * also[31][2];
+ Common::String *also[31][2];
pedtype peds[15];
magictype magics[15];
magictype portals[7];