diff --git a/Source/Plugins/BuilderModes/ClassicModes/ThingsMode.cs b/Source/Plugins/BuilderModes/ClassicModes/ThingsMode.cs index de189236..b6937b37 100644 --- a/Source/Plugins/BuilderModes/ClassicModes/ThingsMode.cs +++ b/Source/Plugins/BuilderModes/ClassicModes/ThingsMode.cs @@ -999,13 +999,13 @@ namespace CodeImp.DoomBuilder.BuilderModes // Make text labels for selected linedefs ICollection orderedselection = General.Map.Map.GetSelectedThings(true); + labels = new Dictionary(orderedselection.Count); // Otherwise significant delays will occure. // Also we probably won't care about selection ordering when selecting this many anyway if(orderedselection.Count > MAX_THING_LABELS) return; int index = 0; - labels = new Dictionary(orderedselection.Count); foreach(Thing thing in orderedselection) { TextLabel l = new TextLabel();