physics.c: can_collide now checks for object_is_valid before comfirming other variables

pull/12/head
Sara 2023-07-12 02:47:31 +02:00
parent 78c0e3a9c0
commit 8a6a0e7493
1 changed files with 1 additions and 1 deletions

View File

@ -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