diff options
author | Jürgen Doser <jurgen.doser@gmail.com> | 2013-01-22 17:03:38 +0100 |
---|---|---|
committer | Jürgen Doser <jurgen.doser@gmail.com> | 2013-01-22 17:47:12 +0100 |
commit | e237c1d07d4a257329ba4db1631f40054510d445 (patch) | |
tree | 936e300994328813e1647eaa3454423a0a6d70c8 | |
parent | 33be32f2789e484310d0fa2bcdd33f53d06e8bc5 (diff) | |
download | minetest-e237c1d07d4a257329ba4db1631f40054510d445.tar.gz minetest-e237c1d07d4a257329ba4db1631f40054510d445.tar.bz2 minetest-e237c1d07d4a257329ba4db1631f40054510d445.zip |
Fix crash when no world is selected and configure button is pressed.
by moving return statement out of if-then-else clause...
-rw-r--r-- | src/guiMainMenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiMainMenu.cpp b/src/guiMainMenu.cpp index 77a5a85b8..68ee990cd 100644 --- a/src/guiMainMenu.cpp +++ b/src/guiMainMenu.cpp @@ -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); |