diff options
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r-- | scumm/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 60d183bf47..263d6ed6cb 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -183,7 +183,7 @@ void Sound::playSound(int soundID, int heOffset, int heChannel, int heFlags) { sprintf(buf, "%s.he4", _vm->getGameName()); if (_vm->_substResFileNameIndex > 0) { - _vm->generateSubstResFileName(buf, buf1, 128, 0, _vm->_substResFileNameIndex); + _vm->generateSubstResFileName(buf, buf1, sizeof(buf1)); strcpy(buf, buf1); } if (musicFile.open(buf) == false) { @@ -1121,7 +1121,7 @@ ScummFile *Sound::openSfxFile() { if (_vm->_substResFileNameIndex > 0) { char buf1[128]; - _vm->generateSubstResFileName(buf, buf1, 128, 0, _vm->_substResFileNameIndex); + _vm->generateSubstResFileName(buf, buf1, sizeof(buf1)); strcpy(buf, buf1); } if (file->open(buf) && _vm->_heversion <= 72) |