[Scummvm-cvs-logs] scummvm master -> 8524a3a71452b6cc7ac14889eacd98f31d018b0d

Strangerke Strangerke at scummvm.org
Wed Jan 15 07:18:43 CET 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:
8524a3a714 MORTEVIELLE: Add some missing variable initializations


Commit: 8524a3a71452b6cc7ac14889eacd98f31d018b0d
    https://github.com/scummvm/scummvm/commit/8524a3a71452b6cc7ac14889eacd98f31d018b0d
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-01-14T22:12:46-08:00

Commit Message:
MORTEVIELLE: Add some missing variable initializations

Changed paths:
    engines/mortevielle/menu.cpp
    engines/mortevielle/sound.cpp



diff --git a/engines/mortevielle/menu.cpp b/engines/mortevielle/menu.cpp
index 14fc8d4..7979e3c 100644
--- a/engines/mortevielle/menu.cpp
+++ b/engines/mortevielle/menu.cpp
@@ -56,7 +56,26 @@ Menu::Menu(MortevielleEngine *vm) {
 	_opcodePlace = _opcodeOpen = _opcodeTake = _opcodeLook = OPCODE_NONE;
 	_opcodeSmell = _opcodeSound = _opcodeLeave = _opcodeLift = OPCODE_NONE;
 	_opcodeTurn = _opcodeSHide = _opcodeSSearch = _opcodeSRead = OPCODE_NONE;
-	_opcodeSPut = _opcodeSLook = OPCODE_NONE;
+	_opcodeSPut = _opcodeSLook = _msg3 = _msg4 = OPCODE_NONE;
+
+	_menuActive = false;
+	_menuSelected = false;
+	_multiTitle = false;
+	_menuDisplayed = false;
+	for (int i = 0; i < 9; i++) {
+		_discussMenu[i]._menuId = MENU_NONE;
+		_discussMenu[i]._actionId = 0;
+		_inventoryMenu[i]._menuId = MENU_NONE;
+		_inventoryMenu[i]._actionId = 0;
+	}
+	for (int i = 0; i < 8; i++) {
+		_moveMenu[i]._menuId = MENU_NONE;
+		_moveMenu[i]._actionId = 0;
+	}
+	for (int i = 0; i < 12; i++) {
+		_actionMenu[i]._menuId = MENU_NONE;
+		_actionMenu[i]._actionId = 0;
+	}
 }
 
 void Menu::readVerbNums(Common::File &f, int dataSize) {
diff --git a/engines/mortevielle/sound.cpp b/engines/mortevielle/sound.cpp
index c39c8e7..db1f757 100644
--- a/engines/mortevielle/sound.cpp
+++ b/engines/mortevielle/sound.cpp
@@ -73,6 +73,8 @@ SoundManager::SoundManager(MortevielleEngine *vm, Audio::Mixer *mixer) {
 		_queue[i]._rep = 0;
 	}
 	_buildingSentence = false;
+	_ptr_oct = 0;
+	_cfiphBuffer = nullptr;
 }
 
 SoundManager::~SoundManager() {






More information about the Scummvm-git-logs mailing list