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; }