aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v72he.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index c3ffda90d9..3e0d61af12 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -2064,7 +2064,10 @@ void ScummEngine_v72he::o72_openFile() {
copyScriptString(filename);
// HACK Correct incorrect filenames
- if (!strcmp((char *)filename,".he7")) {
+ if (!strcmp((char *)filename,".he3")) {
+ memset(filename, 0, sizeof(filename));
+ sprintf((char *)filename, "%s.he3", _gameName.c_str());
+ } else if (!strcmp((char *)filename,".he7")) {
memset(filename, 0, sizeof(filename));
sprintf((char *)filename, "%s.he7", _gameName.c_str());
} else if (!strcmp((char *)filename,".HE9")) {