From cae493523c8f1d3c7ae4e5da28c12a4633baf4be Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 5 Jul 2015 21:26:08 +0200 Subject: MADE: Music: initialize musicType variable wasn't initialized in case milesAudio was disabled --- engines/made/music.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/made') diff --git a/engines/made/music.cpp b/engines/made/music.cpp index aab22fd7ca..f57da833c2 100644 --- a/engines/made/music.cpp +++ b/engines/made/music.cpp @@ -37,7 +37,7 @@ namespace Made { MusicPlayer::MusicPlayer(bool milesAudio) : _isGM(false),_milesAudioMode(false) { - MusicType musicType; + MusicType musicType = MT_INVALID; if (milesAudio) { MidiDriver::DeviceHandle dev = MidiDriver::detectDevice(MDT_MIDI | MDT_ADLIB | MDT_PREFER_MT32); musicType = MidiDriver::getMusicType(dev); -- cgit v1.2.3