From de42087e51adfa45c6637c5529b944d057e639d5 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 5 May 2019 21:55:57 +0200 Subject: [PATCH] modules/world: init hitbox before loading the parent new() function --- 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 ed20ae8..270ce3c 100644 --- a/gamecore/modules/world/actors/actor2D.lua +++ b/gamecore/modules/world/actors/actor2D.lua @@ -30,8 +30,8 @@ local Actor2D = BaseActor:extend() -- Initialise the actor and its base functions function Actor2D:new(world, type, x, y, w, h, isSolid) - Actor2D.super.new(self, world, type, isSolid) self:initHitbox(x, y, w, h) + Actor2D.super.new(self, world, type, isSolid) self:initPhysics() self:register() end