mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +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