fx: object: handle NULL in query_type()
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ FX_TYPE_DEFINITION_END(fx_object)
|
|||||||
|
|
||||||
fx_type_id fx_object_query_type(const struct _fx_object *obj)
|
fx_type_id fx_object_query_type(const struct _fx_object *obj)
|
||||||
{
|
{
|
||||||
return &obj->obj_type->ty_id;
|
return obj ? &obj->obj_type->ty_id : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
fx_result fx_object_instantiate(
|
fx_result fx_object_instantiate(
|
||||||
|
|||||||
Reference in New Issue
Block a user