From 50706084ebc48755801bb67113f30252a6d402cb Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 5 Jul 2026 15:59:14 +0100 Subject: [PATCH] fx: object: handle NULL in query_type() --- fx/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fx/object.c b/fx/object.c index fd9cc25..a097702 100644 --- a/fx/object.c +++ b/fx/object.c @@ -23,7 +23,7 @@ FX_TYPE_DEFINITION_END(fx_object) 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(