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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user