mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 07:53:12 +00:00
Fix loading music/speech files in HE98+ games
svn-id: r22126
This commit is contained in:
parent
e80d24aa22
commit
b1bc5f059e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user