mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Fix crash updating gametype without game
This commit is contained in:
parent
1afd359550
commit
7bd30b59ee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user