From 34098ae3c738b553c4b12377ba74b1d80072e41b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 9 Apr 2005 11:59:43 +0000 Subject: Simplify the substResFileName system a bit svn-id: r17475 --- scumm/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm/sound.cpp') 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) -- cgit v1.2.3