1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix freeze on attempt to load campaign save list

This commit is contained in:
Ivan Savenko 2024-05-28 16:00:52 +00:00
parent bffc28d9a6
commit a092760237

View File

@ -677,7 +677,6 @@ void SelectionTab::selectFileName(std::string fname)
}
filter(-1);
selectAbs(-1);
for(int i = (int)curItems.size() - 1; i >= 0; i--)
{
@ -689,6 +688,8 @@ void SelectionTab::selectFileName(std::string fname)
}
}
selectAbs(-1);
if(tabType == ESelectionScreen::saveGame && inputName->getText().empty())
inputName->setText("NEWGAME");
}