fx: object: handle NULL in query_type()

This commit is contained in:
2026-07-05 15:59:14 +01:00
parent 38699a0eb3
commit 50706084eb
+1 -1
View File
@@ -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(