Skip to content

Commit

Permalink
PRINCE: 9997BEKA.WAV fix - not exisiting sound in data files
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslw committed Jul 20, 2014
1 parent 0415d35 commit e241b6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engines/prince/prince.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit e241b6e

Please sign in to comment.