From 09d1dee599de4e345e93b17af76d000870d340eb Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 6 Aug 2014 20:07:11 +0200 Subject: MADS: Fix some more uninitialized variables --- engines/mads/msurface.h | 2 +- engines/mads/nebular/dialogs_nebular.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/mads/msurface.h b/engines/mads/msurface.h index 23e0a03985..cd6bde1271 100644 --- a/engines/mads/msurface.h +++ b/engines/mads/msurface.h @@ -230,7 +230,7 @@ public: /** * Constructor */ - DepthSurface(MADSEngine *vm) : _vm(vm) {} + DepthSurface(MADSEngine *vm) : _vm(vm), _depthStyle(0) {} /** * Returns the depth at a given position diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp index d4b277d856..f3eddc3fbb 100644 --- a/engines/mads/nebular/dialogs_nebular.cpp +++ b/engines/mads/nebular/dialogs_nebular.cpp @@ -638,6 +638,7 @@ GameDialog::GameDialog(MADSEngine *vm) : FullScreenDialog(vm) { scene.clearVocab(); scene._dynamicHotspots.clear(); _vm->_dialogs->_defaultPosition = Common::Point(-1, -1); + _menuSpritesIndex = 0; } void GameDialog::display() { -- cgit v1.2.3