Increased size of VOC filename buffer to accomodate for 1000.VOC and

beyond. (Fixes a failed assertion for me.)

svn-id: r19785
This commit is contained in:
Torbjörn Andersson 2005-12-12 19:22:49 +00:00
parent 080039cf14
commit 01c3248905

View File

@ -910,7 +910,7 @@ void KyraEngine::snd_playSoundEffect(int track) {
void KyraEngine::snd_playVoiceFile(int id) {
debug(9, "KyraEngine::snd_playVoiceFile(%d)", id);
char vocFile[8];
char vocFile[9];
assert(id >= 0 && id < 9999);
sprintf(vocFile, "%03d.VOC", id);
uint32 fileSize = 0;