diff options
author | Eugene Sandulenko | 2016-05-06 11:41:52 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-06 11:41:52 +0200 |
commit | 090faf5e9f6f329cf2bb31c52071ea16548c961c (patch) | |
tree | 282568c66225187a1684177d376239f1e907142c | |
parent | 2389de7a8d4439ce350c994c91f4052f24301f22 (diff) | |
download | scummvm-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
-rw-r--r-- | engines/sword25/gfx/renderobject.cpp | 2 |
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(); |