Skip to content

Commit 7bd30b5

Browse files
sapiersapier
sapier
authored and
sapier
committedNov 9, 2013
Fix crash updating gametype without game
1 parent 1afd359 commit 7bd30b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎builtin/mainmenu.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -1191,12 +1191,13 @@ end
11911191

11921192
--------------------------------------------------------------------------------
11931193
function menu.update_gametype(reset)
1194-
if reset then
1194+
local game = menu.lastgame()
1195+
1196+
if reset or game == nil then
11951197
mm_texture.reset()
11961198
engine.set_topleft_text("")
11971199
filterlist.set_filtercriteria(worldlist,nil)
11981200
else
1199-
local game = menu.lastgame()
12001201
mm_texture.update(tabbuilder.current_tab,game)
12011202
engine.set_topleft_text(game.name)
12021203
filterlist.set_filtercriteria(worldlist,game.id)

0 commit comments

Comments
 (0)
Please sign in to comment.