[Scummvm-cvs-logs] scummvm master -> 09d1dee599de4e345e93b17af76d000870d340eb

Strangerke Strangerke at scummvm.org
Wed Aug 6 20:10:14 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
09d1dee599 MADS: Fix some more uninitialized variables


Commit: 09d1dee599de4e345e93b17af76d000870d340eb
    https://github.com/scummvm/scummvm/commit/09d1dee599de4e345e93b17af76d000870d340eb
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-08-06T20:07:11+02:00

Commit Message:
MADS: Fix some more uninitialized variables

Changed paths:
    engines/mads/msurface.h
    engines/mads/nebular/dialogs_nebular.cpp



diff --git a/engines/mads/msurface.h b/engines/mads/msurface.h
index 23e0a03..cd6bde1 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 d4b277d..f3eddc3 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() {






More information about the Scummvm-git-logs mailing list