deinit_entity
This commit is contained in:
@@ -201,6 +201,8 @@ entity_should_be_rendered :: (e: *Entity) -> bool {
|
||||
}
|
||||
|
||||
destroy_entity :: (e: *Entity) {
|
||||
call_correct_deinit_entity(e);
|
||||
|
||||
if e.collider.mesh.vertices.data != null {
|
||||
array_free(e.collider.mesh.vertices);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user