Browse Source

fix error with custom campaign

Laserlicht 1 year ago
parent
commit
1f850b8e4e
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");
 }