aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/core
diff options
context:
space:
mode:
authorFilippos Karapetis2015-01-10 01:36:20 +0200
committerFilippos Karapetis2015-01-10 01:36:20 +0200
commitc82480461cacab7893053d8e4821b3a6987552c9 (patch)
tree3a80b8a6f72bcc527aefb75b61d3538a09b16a3c /engines/zvision/core
parent79b92fe04698d3336f1d5232d4701133ff3ac10c (diff)
downloadscummvm-rg350-c82480461cacab7893053d8e4821b3a6987552c9.tar.gz
scummvm-rg350-c82480461cacab7893053d8e4821b3a6987552c9.tar.bz2
scummvm-rg350-c82480461cacab7893053d8e4821b3a6987552c9.zip
ZVISION: Make sure only existing files are dumped
Diffstat (limited to 'engines/zvision/core')
-rw-r--r--engines/zvision/core/console.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/zvision/core/console.cpp b/engines/zvision/core/console.cpp
index 65821b1702..f39c06b57e 100644
--- a/engines/zvision/core/console.cpp
+++ b/engines/zvision/core/console.cpp
@@ -263,7 +263,8 @@ bool Console::cmdDumpFiles(int argc, const char **argv) {
debugPrintf("Dumping %s\n", fileName.c_str());
in = iter->_value.arch->createReadStreamForMember(iter->_value.name);
- dumpFile(in, fileName.c_str());
+ if (in)
+ dumpFile(in, fileName.c_str());
delete in;
}