object_is_valid now does not attempt to validate internals if object is NULL

pull/12/head
Sara 2023-07-12 02:25:32 +02:00
parent d915047bd1
commit 6a52f2795d
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);
static inline
int object_is_valid(object_t* object) {
return object != NULL || object->active <= 0;
return object != NULL && object->active <= 0;
}
#endif /* _object_h */