diff --git a/src/corelib/physics.c b/src/corelib/physics.c index 02890e3..6ac2844 100644 --- a/src/corelib/physics.c +++ b/src/corelib/physics.c @@ -24,7 +24,7 @@ void object_broadcast_collision(object_t* this, object_t* other) { } } short can_collide(const object_t* this) { - return this->active && this->enabled; + return object_is_valid(this) && this->enabled; } static inline