Fix loading music/speech files in HE98+ games

svn-id: r22126
This commit is contained in:
Travis Howell 2006-04-23 23:27:51 +00:00
parent e80d24aa22
commit b1bc5f059e

View File

@ -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