object_is_valid now takes a constant pointer
parent
59de57fe3a
commit
78c0e3a9c0
|
@ -25,7 +25,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(const object_t* object) {
|
||||||
return object == NULL || object->active == 0;
|
return object == NULL || object->active == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue