aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürgen Doser <jurgen.doser@gmail.com>2013-01-22 17:03:38 +0100
committerJürgen Doser <jurgen.doser@gmail.com>2013-01-22 17:47:12 +0100
commite237c1d07d4a257329ba4db1631f40054510d445 (patch)
tree936e300994328813e1647eaa3454423a0a6d70c8
parent33be32f2789e484310d0fa2bcdd33f53d06e8bc5 (diff)
downloadminetest-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.cpp2
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);