1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix rare crash if player changes starting hero in MP while another has

town right-click popup open
This commit is contained in:
Ivan Savenko
2025-04-06 18:39:29 +03:00
parent 76418e7f14
commit 3dd15beede

View File

@@ -68,13 +68,14 @@ void OptionsTab::recreate()
entries.clear();
humanPlayers = 0;
for (auto tooltipWindow : GH.windows().findWindows<CPlayerOptionTooltipBox>())
tooltipWindow->close();
for (auto heroOverview : GH.windows().findWindows<CHeroOverview>())
heroOverview->close();
for (auto selectionWindow : GH.windows().findWindows<SelectionWindow>())
{
selectionWindow->reopen();
}
OBJECT_CONSTRUCTION;
for(auto & pInfo : SEL->getStartInfo()->playerInfos)