aboutsummaryrefslogtreecommitdiff
path: root/sky/sky.cpp
diff options
context:
space:
mode:
authorMax Horn2003-12-12 14:40:40 +0000
committerMax Horn2003-12-12 14:40:40 +0000
commit9008abc7ea34e21d5be2ef9c8a3132d18b8f9374 (patch)
tree312373b86e37e93a4be46f4c101f725cd201972c /sky/sky.cpp
parentbaf2fd3900348202fba59f91898c5c91f5104b56 (diff)
downloadscummvm-rg350-9008abc7ea34e21d5be2ef9c8a3132d18b8f9374.tar.gz
scummvm-rg350-9008abc7ea34e21d5be2ef9c8a3132d18b8f9374.tar.bz2
scummvm-rg350-9008abc7ea34e21d5be2ef9c8a3132d18b8f9374.zip
cleanup: no need to access detector->_game.midi, since the value is fixed anyway
svn-id: r11596
Diffstat (limited to 'sky/sky.cpp')
-rw-r--r--sky/sky.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp
index 1508a11020..7c408e4a8a 100644
--- a/sky/sky.cpp
+++ b/sky/sky.cpp
@@ -122,7 +122,6 @@ SkyEngine::SkyEngine(GameDetector *detector, OSystem *syst)
_debugMode = ConfMan.hasKey("debuglevel");
_debugLevel = ConfMan.getInt("debuglevel");
- _midi = detector->_game.midi;
_floppyIntro = ConfMan.getBool("floppy_intro");
@@ -256,7 +255,7 @@ void SkyEngine::initialise(void) {
_systemVars.gameVersion = _skyDisk->determineGameVersion();
- int midiDriver = GameDetector::detectMusicDriver(_midi);
+ int midiDriver = GameDetector::detectMusicDriver(skySetting.midi);
if (midiDriver == MD_ADLIB) {
_systemVars.systemFlags |= SF_SBLASTER;
_skyMusic = new SkyAdlibMusic(_mixer, _skyDisk, _system);