Skip to content

Commit

Permalink
Fix infinite dialog creation on Research Completion
Browse files Browse the repository at this point in the history
Introduced in f4d8e82
  • Loading branch information
Nebual committed Mar 23, 2020
1 parent 970c4a1 commit 39e9c3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Client/Comp/MultiplayerMapComp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ static void Prefix(MapDrawer __instance)
if (comp.mapDialogs.Any())
{
//If NO mapdialogs (Dialog_NodeTrees) are open, add the first one to the window stack
if (!Find.WindowStack.IsOpen(typeof(Dialog_NodeTree)))
Find.WindowStack.Add(comp.mapDialogs.First().Dialog);Find.WindowStack.Add(comp.mapDialogs.First().Dialog);
if (!Find.WindowStack.IsOpen(typeof(Dialog_NodeTree))) {
Find.WindowStack.Add(comp.mapDialogs.First().Dialog);
}
}
else if (comp.caravanForming != null)
{
Expand Down

0 comments on commit 39e9c3a

Please sign in to comment.