SWORD25: Bail out instead of silently leaving the object in incosistent state

This commit is contained in:
Eugene Sandulenko 2016-05-06 11:41:52 +02:00
parent 2389de7a8d
commit 090faf5e9f

View File

@ -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();