From d27a3e07f7250ea7d8ca6304095b882adc4f22b7 Mon Sep 17 00:00:00 2001 From: uruk Date: Thu, 4 Jul 2013 18:27:59 +0200 Subject: AVALANCHE: Gyro: expand initialization. --- engines/avalanche/gyro2.cpp | 5 +++++ engines/avalanche/gyro2.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/avalanche') 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]; -- cgit v1.2.3