aboutsummaryrefslogtreecommitdiff
path: root/engines/made
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-05-20 19:51:54 +0200
committerAdrian Frühwirth2018-05-20 19:53:14 +0200
commit5dda21c1c2552945a9446ee24ec6692734a0332a (patch)
tree18df680eea72ca08650445310a2493941eab827b /engines/made
parente1cd9e589d703afc6d34309ea72c3ee1de892bc1 (diff)
downloadscummvm-rg350-5dda21c1c2552945a9446ee24ec6692734a0332a.tar.gz
scummvm-rg350-5dda21c1c2552945a9446ee24ec6692734a0332a.tar.bz2
scummvm-rg350-5dda21c1c2552945a9446ee24ec6692734a0332a.zip
MADE: Do not attempt to read from non-existing file
Fixes Trac#10534.
Diffstat (limited to 'engines/made')
-rw-r--r--engines/made/resource.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/made/resource.cpp b/engines/made/resource.cpp
index a9734ed47d..d8ceb87bb6 100644
--- a/engines/made/resource.cpp
+++ b/engines/made/resource.cpp
@@ -400,7 +400,8 @@ ResourceReader::~ResourceReader() {
// V2
void ResourceReader::open(const char *filename) {
_fd = new Common::File();
- _fd->open(filename);
+ if (!_fd->open(filename))
+ error("ResourceReader::open() Could not open '%s'", filename);
_fd->skip(0x18); // skip header for now