diff options
author | Johannes Schickel | 2008-05-12 13:50:59 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-12 13:50:59 +0000 |
commit | 0b9a3f22083cb7ec61953c3c6905c4780e93619a (patch) | |
tree | 647a8fd661742759de86f2d2c181ee1d1ad25e7e /engines | |
parent | 771854bdd93581b1d7898c7ff0abdfc54d67780a (diff) | |
download | scummvm-rg350-0b9a3f22083cb7ec61953c3c6905c4780e93619a.tar.gz scummvm-rg350-0b9a3f22083cb7ec61953c3c6905c4780e93619a.tar.bz2 scummvm-rg350-0b9a3f22083cb7ec61953c3c6905c4780e93619a.zip |
Added assert to snd_playSoundEffect.
svn-id: r32060
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/kyra_mr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/kyra/kyra_mr.cpp b/engines/kyra/kyra_mr.cpp index d68bb7e02f..9503420f82 100644 --- a/engines/kyra/kyra_mr.cpp +++ b/engines/kyra/kyra_mr.cpp @@ -479,6 +479,7 @@ void KyraEngine_MR::snd_playSoundEffect(int item, int volume) { debugC(9, kDebugLevelMain, "KyraEngine_MR::snd_playSoundEffect(%d, %d)", item, volume); if (_sfxFileMap[item*2+0] != 0xFF) { char filename[16]; + assert(_sfxFileMap[item*2+0] < _sfxFileListSize); snprintf(filename, 16, "%s.AUD", _sfxFileList[_sfxFileMap[item*2+0]]); uint8 priority = _sfxFileMap[item*2+1]; |