From 2d99f5bfc6cd0aab348147f6ddfc4fc47a88af2b Mon Sep 17 00:00:00 2001 From: uruk Date: Thu, 5 Sep 2013 14:44:55 +0200 Subject: AVALANCHE: Repair some initialization to silence Valgrind warnings. --- engines/avalanche/avalot.cpp | 1 + engines/avalanche/lucerna2.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp index b1b5fe880b..a51d9e62e3 100644 --- a/engines/avalanche/avalot.cpp +++ b/engines/avalanche/avalot.cpp @@ -167,6 +167,7 @@ void Avalot::setup() { _vm->_lucerna->dawn(); _vm->_parser->_cursorState = false; _vm->_parser->cursorOn(); + _vm->_trip->tr[0].xs = _vm->_gyro->walk; _vm->_trip->newspeed(); diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp index 4c9997e091..f026f040a1 100644 --- a/engines/avalanche/lucerna2.cpp +++ b/engines/avalanche/lucerna2.cpp @@ -64,8 +64,8 @@ Lucerna::~Lucerna() { } void Lucerna::init() { - _vm->_gyro->oh = 17717; - _vm->_gyro->om = 17717; + _vm->_gyro->oh = _vm->_gyro->onh = _vm->_gyro->om = 17717; + #if 0 if (_vm->_enhanced->atbios) _vm->_gyro->atkey = "f1"; -- cgit v1.2.3