From c70a9e2cac5b26440310098a9f04623a1b84247c Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Thu, 3 Dec 2009 22:24:29 +0000 Subject: SCI: Dont init sound when using old sfx code (fixes assert) svn-id: r46246 --- engines/sci/sfx/soundcmd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/sci/sfx') diff --git a/engines/sci/sfx/soundcmd.cpp b/engines/sci/sfx/soundcmd.cpp index d883874b83..352f61c307 100644 --- a/engines/sci/sfx/soundcmd.cpp +++ b/engines/sci/sfx/soundcmd.cpp @@ -131,8 +131,10 @@ SoundCommandParser::SoundCommandParser(ResourceManager *resMan, SegManager *segM _hasNodePtr = (((SciEngine*)g_engine)->getKernel()->_selectorCache.nodePtr != -1); - _music = new SciMusic(); - _music->init(); + #ifndef USE_OLD_MUSIC_FUNCTIONS + _music = new SciMusic(); + _music->init(); + #endif switch (doSoundVersion) { case SCI_VERSION_0_EARLY: -- cgit v1.2.3