aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTravis Howell2006-04-23 23:27:51 +0000
committerTravis Howell2006-04-23 23:27:51 +0000
commitb1bc5f059e29ebc0994133dde869ead162a1f883 (patch)
treee5e5e868a7673f0c68d1e81c13cd0cb3dc557fe6 /engines/scumm
parente80d24aa22e5e83a86b28454d23241f3574eef1f (diff)
downloadscummvm-rg350-b1bc5f059e29ebc0994133dde869ead162a1f883.tar.gz
scummvm-rg350-b1bc5f059e29ebc0994133dde869ead162a1f883.tar.bz2
scummvm-rg350-b1bc5f059e29ebc0994133dde869ead162a1f883.zip
Fix loading music/speech files in HE98+ games
svn-id: r22126
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/plugin.cpp b/engines/scumm/plugin.cpp
index a09d3efb5c..c8ded8a0c7 100644
--- a/engines/scumm/plugin.cpp
+++ b/engines/scumm/plugin.cpp
@@ -812,7 +812,7 @@ Common::String ScummEngine::generateFilename(const int room) const {
if (_filenamePattern.genMethod == kGenHEPC) {
// For HE >= 98, we already called snprintf above.
- if (_game.heversion < 98)
+ if (_game.heversion < 98 || room < 0)
snprintf(buf, sizeof(buf), "%s.he%c", _filenamePattern.pattern, id);
} else {
if (id == '3') { // special case for cursors