From 849f383169d57b0dee7b33ab0c2166007b50b8c2 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Tue, 27 Jan 2015 07:14:55 +0100 Subject: MADE: Initialize some variables, remove a useless variable --- engines/made/scriptfuncs.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/made/scriptfuncs.cpp') diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp index efa765c7eb..bcc08e0dcc 100644 --- a/engines/made/scriptfuncs.cpp +++ b/engines/made/scriptfuncs.cpp @@ -42,6 +42,8 @@ ScriptFunctions::ScriptFunctions(MadeEngine *vm) : _vm(vm), _soundStarted(false) _pcSpeaker2 = new Audio::PCSpeaker(); _vm->_system->getMixer()->playStream(Audio::Mixer::kMusicSoundType, &_pcSpeakerHandle1, _pcSpeaker1); _vm->_system->getMixer()->playStream(Audio::Mixer::kMusicSoundType, &_pcSpeakerHandle2, _pcSpeaker2); + _soundResource = nullptr; + _musicRes = nullptr; } ScriptFunctions::~ScriptFunctions() { -- cgit v1.2.3