Browse Source

Merge pull request #3807 from Laserlicht/fix_newgame

fix error with custom campaign
Ivan Savenko 1 year ago
parent
commit
2fee4b3c09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/lobby/SelectionTab.cpp

+ 1 - 1
client/lobby/SelectionTab.cpp

@@ -678,7 +678,7 @@ void SelectionTab::selectFileName(std::string fname)
 	filter(-1);
 	selectAbs(-1);
 
-	if(inputName->getText().empty())
+	if(tabType == ESelectionScreen::saveGame && inputName->getText().empty())
 		inputName->setText("NEWGAME");
 }