1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

fix error with custom campaign

This commit is contained in:
Laserlicht 2024-04-20 18:57:53 +02:00 committed by GitHub
parent 70fad45316
commit 1f850b8e4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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");
}