mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 10:25:21 +02: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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user