mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 17:07:29 +01:00
Fix crash when no world is selected and configure button is pressed.
by moving return statement out of if-then-else clause...
This commit is contained in:
parent
33be32f278
commit
e237c1d07d
@ -1048,8 +1048,8 @@ bool GUIMainMenu::OnEvent(const SEvent& event)
|
||||
GUIConfigureWorld *menu = new GUIConfigureWorld(env, parent,
|
||||
-1, menumgr, wspec);
|
||||
menu->drop();
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
case GUI_ID_SERVERLIST_DELETE: {
|
||||
gui::IGUIListBox *serverlist = (gui::IGUIListBox*)getElementFromId(GUI_ID_SERVERLIST);
|
||||
|
Loading…
Reference in New Issue
Block a user