aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2015-07-05 21:26:08 +0200
committerMartin Kiewitz2015-07-05 21:26:08 +0200
commitcae493523c8f1d3c7ae4e5da28c12a4633baf4be (patch)
tree3c618dd263a9c417965a74dc212648481b2aed08 /engines
parent76f21a210169579de6dcb55ac62e7072e6a73aad (diff)
downloadscummvm-rg350-cae493523c8f1d3c7ae4e5da28c12a4633baf4be.tar.gz
scummvm-rg350-cae493523c8f1d3c7ae4e5da28c12a4633baf4be.tar.bz2
scummvm-rg350-cae493523c8f1d3c7ae4e5da28c12a4633baf4be.zip
MADE: Music: initialize musicType variable
wasn't initialized in case milesAudio was disabled
Diffstat (limited to 'engines')
-rw-r--r--engines/made/music.cpp2
1 files changed, 1 insertions, 1 deletions
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);