From 090faf5e9f6f329cf2bb31c52071ea16548c961c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 6 May 2016 11:41:52 +0200 Subject: SWORD25: Bail out instead of silently leaving the object in incosistent state --- engines/sword25/gfx/renderobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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 parentPtr, TYPES type, _handle = RenderObjectRegistry::instance().registerObject(this, handle); if (_handle == 0) - return; + error("Failed to initialize RenderObject()"); updateAbsolutePos(); -- cgit v1.2.3