Skip to content

Commit af8f8cc

Browse files
pablomayobrerm-code
authored andcommitted
Register to update and draw
registerCallbacks didn't register to update and draw, since those are not in the event handlers, the fix is simple.
1 parent be2774e commit af8f8cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ScreenManager.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ function ScreenManager.registerCallbacks( callbacks )
537537
local registry = {}
538538
local function null() end
539539

540-
if type( callbacks ) ~= "table" then
541-
callbacks = {}
540+
if type( callbacks ) ~= 'table' then
541+
callbacks = { 'update', 'draw' }
542542

543543
for name in pairs( love.handlers ) do
544544
callbacks[#callbacks + 1] = name

0 commit comments

Comments
 (0)