From 78c0e3a9c0561e14c3c5cf243a927e77183f023a Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 12 Jul 2023 02:46:26 +0200 Subject: [PATCH] object_is_valid now takes a constant pointer --- src/corelib/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/object.h b/src/corelib/object.h index ffa0659..362efb6 100644 --- a/src/corelib/object.h +++ b/src/corelib/object.h @@ -25,7 +25,7 @@ object_t object_default(); void object_draw_sprite(object_t* object); static inline -int object_is_valid(object_t* object) { +int object_is_valid(const object_t* object) { return object == NULL || object->active == 0; }