summaryrefslogtreecommitdiffhomepage
path: root/not/PhysicalBody.lua
diff options
context:
space:
mode:
Diffstat (limited to 'not/PhysicalBody.lua')
-rw-r--r--not/PhysicalBody.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/not/PhysicalBody.lua b/not/PhysicalBody.lua
index 7b774f2..a7abcc0 100644
--- a/not/PhysicalBody.lua
+++ b/not/PhysicalBody.lua
@@ -50,6 +50,7 @@ end
-- Update of `PhysicalBody`.
function PhysicalBody:update (dt)
Sprite.update(self, dt)
+ if self.body:isDestroyed() then return end
end
-- Draw of `PhysicalBody`.