object_is_valid now confirms that an object is not null and is active
parent
8a6a0e7493
commit
0698121853
|
@ -26,7 +26,7 @@ object_t object_default();
|
|||
void object_draw_sprite(object_t* object);
|
||||
static inline
|
||||
int object_is_valid(const object_t* object) {
|
||||
return object == NULL || object->active == 0;
|
||||
return object != NULL && object->active != 0;
|
||||
}
|
||||
|
||||
#endif /* _object_h */
|
||||
|
|
Loading…
Reference in New Issue