aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2006-04-23 21:58:01 +0000
committerMax Horn2006-04-23 21:58:01 +0000
commitf776b903d1cbe919108eff9d25f0239ff204a7a7 (patch)
tree0bb5e679c4d69b81c930602ac6a2e6092a033828
parente0a5a2b89e3414f944e24d86a9bf2c8b20526a78 (diff)
downloadscummvm-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.cpp2
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);
}