diff --git a/gamecore/modules/world/actors/actor2D.lua b/gamecore/modules/world/actors/actor2D.lua index ef96360..75d2e2c 100644 --- a/gamecore/modules/world/actors/actor2D.lua +++ b/gamecore/modules/world/actors/actor2D.lua @@ -37,7 +37,7 @@ function Actor2D:new(world, type, x, y, w, h, isSolid) self:initHitboxes(w, h) end -function BaseActor:destroy() +function Actor2D:destroy() self.world:removeActor(self) self.world:removeBody(self.mainHitbox) self.isDestroyed = true