diff options
author | Max Horn | 2006-04-23 21:58:01 +0000 |
---|---|---|
committer | Max Horn | 2006-04-23 21:58:01 +0000 |
commit | f776b903d1cbe919108eff9d25f0239ff204a7a7 (patch) | |
tree | 0bb5e679c4d69b81c930602ac6a2e6092a033828 | |
parent | e0a5a2b89e3414f944e24d86a9bf2c8b20526a78 (diff) | |
download | scummvm-rg350-f776b903d1cbe919108eff9d25f0239ff204a7a7.tar.gz scummvm-rg350-f776b903d1cbe919108eff9d25f0239ff204a7a7.tar.bz2 scummvm-rg350-f776b903d1cbe919108eff9d25f0239ff204a7a7.zip |
Fix access to .he2 in Sound::openSfxFile, too
svn-id: r22119
-rw-r--r-- | engines/scumm/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp index f18d5a49e1..e5c669f06d 100644 --- a/engines/scumm/sound.cpp +++ b/engines/scumm/sound.cpp @@ -941,7 +941,7 @@ BaseScummFile *Sound::openSfxFile() { if (!file->isOpen()) { if ((_vm->_game.heversion <= 61 && _vm->_game.platform == Common::kPlatformMacintosh) || (_vm->_game.heversion >= 70)) { - strncpy(buf, _vm->generateFilename(2).c_str(), sizeof(buf)); + strncpy(buf, _vm->generateFilename(-2).c_str(), sizeof(buf)); } else { sprintf(buf, "%s.tlk", _vm->_filenamePattern.pattern); } |