mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
SWORD25: Bail out instead of silently leaving the object in incosistent state
This commit is contained in:
parent
2389de7a8d
commit
090faf5e9f
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user