Skip to content
Snippets Groups Projects
Commit 7bd30b59 authored by sapier's avatar sapier
Browse files

Fix crash updating gametype without game

parent 1afd3595
No related branches found
No related tags found
No related merge requests found
......@@ -1191,12 +1191,13 @@ end
--------------------------------------------------------------------------------
function menu.update_gametype(reset)
if reset then
local game = menu.lastgame()
if reset or game == nil then
mm_texture.reset()
engine.set_topleft_text("")
filterlist.set_filtercriteria(worldlist,nil)
else
local game = menu.lastgame()
mm_texture.update(tabbuilder.current_tab,game)
engine.set_topleft_text(game.name)
filterlist.set_filtercriteria(worldlist,game.id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment