fix(actor2D): fix a function being put in the wrong object

This commit is contained in:
Kazhnuz 2019-06-27 20:38:15 +02:00
parent 961c7816c1
commit b7344a8973

View file

@ -37,7 +37,7 @@ function Actor2D:new(world, type, x, y, w, h, isSolid)
self:initHitboxes(w, h) self:initHitboxes(w, h)
end end
function BaseActor:destroy() function Actor2D:destroy()
self.world:removeActor(self) self.world:removeActor(self)
self.world:removeBody(self.mainHitbox) self.world:removeBody(self.mainHitbox)
self.isDestroyed = true self.isDestroyed = true