Fix crash when no world is selected and configure button is pressed.

by moving return statement out of if-then-else clause...
master
Jürgen Doser 2013-01-22 17:03:38 +01:00
parent 33be32f278
commit e237c1d07d
1 changed files with 1 additions and 1 deletions

View File

@ -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);