object_is_valid now confirms if an object is valid, as opposed to if an object is invalid

pull/12/head
Sara 2023-07-12 02:43:53 +02:00
parent 3e3f322529
commit 5e001bc345
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ object_t object_default();
void object_draw_sprite(object_t* object); void object_draw_sprite(object_t* object);
static inline static inline
int object_is_valid(object_t* object) { int object_is_valid(object_t* object) {
return object != NULL && object->active <= 0; return object == NULL || object->active == 0;
} }
#endif /* _object_h */ #endif /* _object_h */