object_is_valid now does not attempt to validate internals if object is NULL
parent
d915047bd1
commit
6a52f2795d
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue