diff --git a/src/client/spark_core/Collections/SortedTree.cs b/src/client/spark_core/Collections/SortedTree.cs index 3d47378fe..59046f56c 100644 --- a/src/client/spark_core/Collections/SortedTree.cs +++ b/src/client/spark_core/Collections/SortedTree.cs @@ -36,6 +36,7 @@ namespace bts.collections { while (en.MoveNext()) { if (node_comp.Compare(en.Current, max) >= 0) { inner.Add(en.Current); + max = en.Current; } else inner.InsertSorted(en.Current, node_comp); } }