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:
parent
bffc28d9a6
commit
a092760237
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user