Fix crash when no world is selected and configure button is pressed.
by moving return statement out of if-then-else clause...pull/436/head
parent
33be32f278
commit
e237c1d07d
|
@ -1048,8 +1048,8 @@ bool GUIMainMenu::OnEvent(const SEvent& event)
|
||||||
GUIConfigureWorld *menu = new GUIConfigureWorld(env, parent,
|
GUIConfigureWorld *menu = new GUIConfigureWorld(env, parent,
|
||||||
-1, menumgr, wspec);
|
-1, menumgr, wspec);
|
||||||
menu->drop();
|
menu->drop();
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
case GUI_ID_SERVERLIST_DELETE: {
|
case GUI_ID_SERVERLIST_DELETE: {
|
||||||
gui::IGUIListBox *serverlist = (gui::IGUIListBox*)getElementFromId(GUI_ID_SERVERLIST);
|
gui::IGUIListBox *serverlist = (gui::IGUIListBox*)getElementFromId(GUI_ID_SERVERLIST);
|
||||||
|
|
Loading…
Reference in New Issue