aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukaslw2014-07-20 16:08:08 +0200
committerlukaslw2014-07-20 16:08:08 +0200
commite241b6ea71c0caa073d58b3775a1e8e01aa60519 (patch)
treee9303ae89add245477bd932f316819e72dd74f97
parent0415d35cdb4e10bf8ead959ed6920f1d2f3be26e (diff)
downloadscummvm-rg350-e241b6ea71c0caa073d58b3775a1e8e01aa60519.tar.gz
scummvm-rg350-e241b6ea71c0caa073d58b3775a1e8e01aa60519.tar.bz2
scummvm-rg350-e241b6ea71c0caa073d58b3775a1e8e01aa60519.zip
PRINCE: 9997BEKA.WAV fix - not exisiting sound in data files
-rw-r--r--engines/prince/prince.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index b44b136895..b57cba979e 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -606,6 +606,11 @@ bool PrinceEngine::loadSample(uint32 sampleSlot, const Common::String &streamNam
// SOUND\\SCIERKA1.WAV for now only last path component is used
Common::String normalizedPath = lastPathComponent(streamName, '\\');
+ // WALKAROUND: Wrong name in script, not existing sound in data files
+ if (!normalizedPath.compareTo("9997BEKA.WAV")) {
+ return 0;
+ }
+
debugEngine("loadSample slot %d, name %s", sampleSlot, normalizedPath.c_str());
_mixer->stopID(sampleSlot);