modules/world: init hitbox before loading the parent new() function
This commit is contained in:
parent
2344bd5a9a
commit
de42087e51
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue