fix: add forgotten nullcheck

This commit is contained in:
Kazhnuz 2021-03-23 14:14:03 +01:00
parent 538b9bd093
commit fe467119d2

View file

@ -104,12 +104,16 @@ end
-- Add send keys functions to the scene
function SceneManager:keypressed( key, scancode, isrepeat )
if (self.currentScene ~= nil) then
self.currentScene:keypressed( key, scancode, isrepeat )
end
end
function SceneManager:keyreleased( key )
if (self.currentScene ~= nil) then
self.currentScene:keyreleased( key )
end
end
-- DRAW FUNCTIONS
-- Draw the current scene