diff options
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r-- | scumm/script_v72he.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 55b371fdc6..208ca0cb0b 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -1778,7 +1778,8 @@ int ScummEngine_v72he::readFileToArray(int slot, int32 size) { writeVar(0, 0); ArrayHeader *ah = defineArray(0, kByteArray, 0, 0, 0, size); - _hFileTable[slot].read(ah->data, size + 1); + if (_hFileTable[slot].isOpen()) + _hFileTable[slot].read(ah->data, size + 1); return readVar(0); } |