From ca0f0bf8c687c785bd74f382002bc39a1725f6b4 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 22 Jan 2017 15:10:05 +0100 Subject: [PATCH] Cosmetics touchup --- Logic/Swarm/Positions.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Logic/Swarm/Positions.cs b/Logic/Swarm/Positions.cs index 5d534183..2f65fa56 100644 --- a/Logic/Swarm/Positions.cs +++ b/Logic/Swarm/Positions.cs @@ -74,11 +74,12 @@ namespace Swarmops.Logic.Swarm localizedLeaderTitle = geographyLeaderTemplate.Localized(); } - // Add leader positions of the geographies immediately below (in two generations). - Tree treeResult = result.Tree; - if (geography.ChildrenCount > 0) // Add subleaders if there are child geographies + // Add leader positions of the geographies immediately below (in two generations), + // but only if there are children of this geography + + if (geography.ChildrenCount > 0) { Tree geoTree = geography.Tree;