diff options
author | Nipun Garg | 2019-07-27 15:26:14 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:29 +0200 |
commit | 5fe9b6f6e77041e8fd57f6b76e261a8ae3c6041e (patch) | |
tree | 729661c88c87b0dc2897456cb6bbcfe535adb4ac | |
parent | f7bc31f9e6d6c336b15b892636f83ab71991736d (diff) | |
download | scummvm-rg350-5fe9b6f6e77041e8fd57f6b76e261a8ae3c6041e.tar.gz scummvm-rg350-5fe9b6f6e77041e8fd57f6b76e261a8ae3c6041e.tar.bz2 scummvm-rg350-5fe9b6f6e77041e8fd57f6b76e261a8ae3c6041e.zip |
HDB: Minor fixes in Sound Effects code
-rw-r--r-- | engines/hdb/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/sound.cpp b/engines/hdb/sound.cpp index fef2945961..5e488460a9 100644 --- a/engines/hdb/sound.cpp +++ b/engines/hdb/sound.cpp @@ -1427,7 +1427,7 @@ bool Sound::init() { int index = 0; while (soundList[index].idx != LAST_SOUND) { int index2 = soundList[index].idx; - _soundCache[index2].loaded = false; + _soundCache[index2].loaded = 0; _soundCache[index2].name = soundList[index].name; _soundCache[index2].luaName = soundList[index].luaName; if (!scumm_stricmp(_soundCache[index2].name, ".wav")) @@ -1492,7 +1492,7 @@ bool Sound::playSound(int index) { if (stream == nullptr) return false; - if (_soundCache[index].ext) { + if (_soundCache[index].ext == 1) { #ifdef USE_MAD _soundCache[index].audioStream = Audio::makeMP3Stream(stream, DisposeAfterUse::YES); _soundCache[index].loaded = 1; |