aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v72he.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r--scumm/script_v72he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 0b8f32fe60..c08bc8f3f8 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -1694,7 +1694,7 @@ void ScummEngine_v72he::o72_openFile() {
}
} else {
// Switch all \ to / for portablity
- len = resStrLen(_scriptPointer) + 1;
+ len = resStrLen(filename) + 1;
for (i = 0; i < len; i++) {
if (filename[i] == '\\')
filename[i] = '/';