From 7bb18a018aba0c2bd49abe9c44eb9b13c5b8e1b7 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 1 Jan 2010 14:41:11 +0000 Subject: SCI/newmusic: doing version check before looking for audio resource svn-id: r46831 --- engines/sci/sfx/soundcmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci') diff --git a/engines/sci/sfx/soundcmd.cpp b/engines/sci/sfx/soundcmd.cpp index 4316192dbd..adb90e3806 100644 --- a/engines/sci/sfx/soundcmd.cpp +++ b/engines/sci/sfx/soundcmd.cpp @@ -292,7 +292,7 @@ void SoundCommandParser::cmdInitHandle(reg_t obj, int16 value) { // effects. If the resource exists, play it using map 65535 (sound // effects map) - if (_resMan->testResource(ResourceId(kResourceTypeAudio, number)) && getSciVersion() >= SCI_VERSION_1_1) { + if (getSciVersion() >= SCI_VERSION_1_1 && _resMan->testResource(ResourceId(kResourceTypeAudio, number))) { // Found a relevant audio resource, play it int sampleLen; newSound->pStreamAud = _audio->getAudioStream(number, 65535, &sampleLen); -- cgit v1.2.3