diff --git a/src/vobs/VirtualObject.cc b/src/vobs/VirtualObject.cc index 8712955..d5242ea 100644 --- a/src/vobs/VirtualObject.cc +++ b/src/vobs/VirtualObject.cc @@ -230,8 +230,8 @@ ZkVisual* ZkVirtualObject_setVisual(ZkVirtualObject* slf, ZkVisualType visual) { obj = std::make_shared(); break; case ZkVisualType_UNKNOWN: - obj = nullptr; - break; + slf->visual = nullptr; + return nullptr; } obj->type = static_cast(visual);