diff --git a/src/corelib/object.h b/src/corelib/object.h index 9d26ab9..913b670 100644 --- a/src/corelib/object.h +++ b/src/corelib/object.h @@ -24,5 +24,9 @@ struct object_t { object_t object_default(); void object_draw_sprite(object_t* object); +static inline +int object_is_valid(object_t* object) { + return object != NULL || object->active <= 0; +} -#endif /* _object_h */ \ No newline at end of file +#endif /* _object_h */