examples/options: make the Exit widget go back to mainmenu

This commit is contained in:
Kazhnuz 2019-04-13 10:00:34 +02:00
parent a1f59a60d6
commit 2b45098bcf

View file

@ -135,7 +135,7 @@ function ExitWidget:new(scene, menu)
end
function ExitWidget:action()
love.event.quit()
core.scenemanager:setStoredScene("mainmenu")
end
return OptionsMenu