mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
fix for bug #633082; added some asserts to catch similiar problems in the future
svn-id: r5417
This commit is contained in:
parent
d0d709627c
commit
4bde7140a2
@ -518,9 +518,11 @@ int Sound::startTalkSound(uint32 offset, uint32 b, int mode) {
|
||||
while (num > 0) {
|
||||
_sfxFile->read(&file_byte, sizeof(file_byte));
|
||||
_sfxFile->read(&file_byte_2, sizeof(file_byte_2));
|
||||
assert(i < ARRAYSIZE(_mouthSyncTimes));
|
||||
_mouthSyncTimes[i++] = file_byte | (file_byte_2 << 8);
|
||||
num--;
|
||||
}
|
||||
assert(i < ARRAYSIZE(_mouthSyncTimes));
|
||||
_mouthSyncTimes[i] = 0xFFFF;
|
||||
_sfxMode |= mode;
|
||||
_curSoundPos = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user