aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/mainmenu.lua')
-rw-r--r--builtin/mainmenu.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index d818773c3..7f3bf7f07 100644
--- a/builtin/mainmenu.lua
+++ b/builtin/mainmenu.lua
@@ -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)