mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +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();
|
entries.clear();
|
||||||
humanPlayers = 0;
|
humanPlayers = 0;
|
||||||
|
|
||||||
|
for (auto tooltipWindow : GH.windows().findWindows<CPlayerOptionTooltipBox>())
|
||||||
|
tooltipWindow->close();
|
||||||
|
|
||||||
for (auto heroOverview : GH.windows().findWindows<CHeroOverview>())
|
for (auto heroOverview : GH.windows().findWindows<CHeroOverview>())
|
||||||
heroOverview->close();
|
heroOverview->close();
|
||||||
|
|
||||||
for (auto selectionWindow : GH.windows().findWindows<SelectionWindow>())
|
for (auto selectionWindow : GH.windows().findWindows<SelectionWindow>())
|
||||||
{
|
|
||||||
selectionWindow->reopen();
|
selectionWindow->reopen();
|
||||||
}
|
|
||||||
|
|
||||||
OBJECT_CONSTRUCTION;
|
OBJECT_CONSTRUCTION;
|
||||||
for(auto & pInfo : SEL->getStartInfo()->playerInfos)
|
for(auto & pInfo : SEL->getStartInfo()->playerInfos)
|
||||||
|
|||||||
Reference in New Issue
Block a user