aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-06 11:41:52 +0200
committerEugene Sandulenko2016-05-06 11:41:52 +0200
commit090faf5e9f6f329cf2bb31c52071ea16548c961c (patch)
tree282568c66225187a1684177d376239f1e907142c /engines
parent2389de7a8d4439ce350c994c91f4052f24301f22 (diff)
downloadscummvm-rg350-090faf5e9f6f329cf2bb31c52071ea16548c961c.tar.gz
scummvm-rg350-090faf5e9f6f329cf2bb31c52071ea16548c961c.tar.bz2
scummvm-rg350-090faf5e9f6f329cf2bb31c52071ea16548c961c.zip
SWORD25: Bail out instead of silently leaving the object in incosistent state
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/gfx/renderobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/gfx/renderobject.cpp b/engines/sword25/gfx/renderobject.cpp
index 79f2cbdae0..92d39c252d 100644
--- a/engines/sword25/gfx/renderobject.cpp
+++ b/engines/sword25/gfx/renderobject.cpp
@@ -77,7 +77,7 @@ RenderObject::RenderObject(RenderObjectPtr<RenderObject> parentPtr, TYPES type,
_handle = RenderObjectRegistry::instance().registerObject(this, handle);
if (_handle == 0)
- return;
+ error("Failed to initialize RenderObject()");
updateAbsolutePos();