mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fixed bug where destroyed objects in love.physics cause crash when collected.
This commit is contained in:
@@ -48,6 +48,11 @@ namespace box2d
|
||||
|
||||
delete data;
|
||||
data = 0;
|
||||
|
||||
body->body->DestroyShape(shape);
|
||||
shape = 0;
|
||||
|
||||
body->release();
|
||||
}
|
||||
|
||||
Shape::Type Shape::getType() const
|
||||
|
||||
Reference in New Issue
Block a user