diff options
author | celeron55 <celeron55@gmail.com> | 2013-01-23 10:10:25 -0800 |
---|---|---|
committer | celeron55 <celeron55@gmail.com> | 2013-01-23 10:10:25 -0800 |
commit | 0a27e81704241f856c387fa3f8c92d2773c14ef3 (patch) | |
tree | b5ebc62c210f1ca10ea03711864899175e1724c6 /src/guiMainMenu.cpp | |
parent | c4af909ac844364124c092cd1d66a30ba1766303 (diff) | |
parent | f0998612457ddc3027618e7e446ed968a14385e7 (diff) | |
download | minetest-0a27e81704241f856c387fa3f8c92d2773c14ef3.tar.gz minetest-0a27e81704241f856c387fa3f8c92d2773c14ef3.tar.bz2 minetest-0a27e81704241f856c387fa3f8c92d2773c14ef3.zip |
Merge pull request #436 from doserj/mod_selection
Fix some crashes and improved behaviour for mod selection gui
Diffstat (limited to 'src/guiMainMenu.cpp')
-rw-r--r-- | src/guiMainMenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guiMainMenu.cpp b/src/guiMainMenu.cpp index 77a5a85b8..9291bb4ec 100644 --- a/src/guiMainMenu.cpp +++ b/src/guiMainMenu.cpp @@ -1048,12 +1048,12 @@ 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); - u16 selected = ((gui::IGUIListBox*)serverlist)->getSelected(); + s32 selected = ((gui::IGUIListBox*)serverlist)->getSelected(); if (selected == -1) return true; ServerList::deleteEntry(m_data->servers[selected]); m_data->servers = ServerList::getLocal(); |