From 3b77a3c2c132a5b4829710aaef006409bc21896c Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 16 Mar 2019 15:03:35 +0100 Subject: [PATCH] gamecore/scene: scene should register themselves --- examples/test_scene/init.lua | 2 -- gamecore/modules/scenes.lua | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/test_scene/init.lua b/examples/test_scene/init.lua index 743d433..b383ca5 100644 --- a/examples/test_scene/init.lua +++ b/examples/test_scene/init.lua @@ -28,8 +28,6 @@ function TestScene:new() TestScene.super.new(self) self.i = 0 - - self:register() end function TestScene:update(dt) diff --git a/gamecore/modules/scenes.lua b/gamecore/modules/scenes.lua index fc9f2ab..cd082e2 100644 --- a/gamecore/modules/scenes.lua +++ b/gamecore/modules/scenes.lua @@ -35,6 +35,8 @@ function Scene:new() self.assets = Assets() self.menusystem = MenuSystem() self.keys = core.input:getKeyList() + + self:register() end function Scene:register()