Skip to content

Commit

Permalink
fix preview toggle without level crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Jan 28, 2024
1 parent 00124aa commit f7f18ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion game_handler/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ end)

---stops the game (it will not be updated or rendered anymore)
function game_handler.stop()
current_game.stop()
if current_game then
current_game.stop()
end
end

---check if the game is replaying a replay
Expand Down

0 comments on commit f7f18ef

Please sign in to comment.