Skip to content

Commit 963f61d

Browse files
remove duplicate @noneplayers variables
1 parent 4fc87d7 commit 963f61d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

VariableSystem/VariableIndex.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static void Initialize()
3939
allApiVariables.AddRange(
4040
Enum.GetValues(typeof(FacilityZone))
4141
.Cast<FacilityZone>()
42+
.Where(zone => zone != FacilityZone.None)
4243
.Select(zone =>
4344
{
4445
return new PredefinedPlayerVariable(zone.ToString().LowerFirst() + "Players",
@@ -72,10 +73,7 @@ public static void Initialize()
7273
"Team");
7374
})
7475
.OfType<PredefinedPlayerVariable>());
75-
76-
foreach (var variable in allApiVariables)
77-
{
78-
GlobalVariables.Add(variable);
79-
}
76+
77+
GlobalVariables.AddRange(allApiVariables);
8078
}
8179
}

0 commit comments

Comments
 (0)