Small Optimizations

This commit is contained in:
NeeEoo
2024-04-05 21:21:19 +02:00
parent 7b279bfed0
commit 8174fef53d
6 changed files with 17 additions and 28 deletions
+1 -1
View File
@@ -1811,7 +1811,7 @@ class Charter extends UIState {
public inline function __fixSelection(selection:Selection):Selection {
var newSelection:Selection = new Selection();
for (s in selection) if (newSelection.indexOf(s) == -1) newSelection.push(s);
for (s in selection) if (!newSelection.contains(s)) newSelection.push(s);
return newSelection.filter((s:ICharterSelectable) -> {return s != null;});
}