aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorFilippos Karapetis2015-01-07 11:02:24 +0200
committerFilippos Karapetis2015-01-07 11:42:24 +0200
commit5949ab5aa6ce6a8b39ea44795e638204393adaf6 (patch)
treecad020066d0e15c9aee92a4f0a4f1a58bc80b8b2 /engines/zvision
parent9f642074ba8e17aa23b01bcee82b2293fe84f8f1 (diff)
downloadscummvm-rg350-5949ab5aa6ce6a8b39ea44795e638204393adaf6.tar.gz
scummvm-rg350-5949ab5aa6ce6a8b39ea44795e638204393adaf6.tar.bz2
scummvm-rg350-5949ab5aa6ce6a8b39ea44795e638204393adaf6.zip
ZVISION: Error out when a cursor file can't be found
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/graphics/cursors/cursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/graphics/cursors/cursor.cpp b/engines/zvision/graphics/cursors/cursor.cpp
index f32c68645d..2c011668ac 100644
--- a/engines/zvision/graphics/cursors/cursor.cpp
+++ b/engines/zvision/graphics/cursors/cursor.cpp
@@ -43,7 +43,7 @@ ZorkCursor::ZorkCursor(ZVision *engine, const Common::String &fileName)
_hotspotY(0) {
Common::File file;
if (!engine->getSearchManager()->openFile(file, fileName))
- return;
+ error("Cursor file %s does not exist", fileName.c_str());
uint32 magic = file.readUint32BE();
if (magic != MKTAG('Z', 'C', 'R', '1')) {