physics.c: can_collide now checks for object_is_valid before comfirming other variables
parent
78c0e3a9c0
commit
8a6a0e7493
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue