From b7344a897308fa71d5cafbbe1dddabecdd2a4d4b Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 27 Jun 2019 20:38:15 +0200 Subject: [PATCH] fix(actor2D): fix a function being put in the wrong object --- gamecore/modules/world/actors/actor2D.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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