Skip to content
Snippets Groups Projects
Commit c1cfcb15 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Do not clear address in main menu if starting a singleplayer game by double clicking the world

parent 2e90ed07
No related branches found
No related tags found
No related merge requests found
...@@ -866,9 +866,10 @@ bool GUIMainMenu::OnEvent(const SEvent& event) ...@@ -866,9 +866,10 @@ bool GUIMainMenu::OnEvent(const SEvent& event)
{ {
switch(event.GUIEvent.Caller->getID()) switch(event.GUIEvent.Caller->getID())
{ {
case GUI_ID_WORLD_LISTBOX: case GUI_ID_WORLD_LISTBOX:
acceptInput(); acceptInput();
m_data->address = L""; // Force local game if(getTab() != TAB_SINGLEPLAYER)
m_data->address = L""; // Force local game
quitMenu(); quitMenu();
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment