Fix 1.6 build and indexed map clearing

This commit is contained in:
2026-10-02 04:00:27 -04:00
parent 691d97ef2c
commit 5bc4202100
6 changed files with 16 additions and 3 deletions
@@ -140,6 +140,7 @@ public class IndexedFishMap<TX, TY> : IList<(TX X, TY Y)>, IList, IReadOnlyList<
public void Clear()
{
_xIndices.Clear();
_yIndices.Clear();
_items.Clear();
}
@@ -256,4 +257,4 @@ public class IndexedFishMap<TX, TY> : IList<(TX X, TY Y)>, IList, IReadOnlyList<
private static (TX X, TY Y) EnsureCorrectType([NotNullWhen(true)] object? item)
=> item is ValueTuple<TX, TY> t ? t : ThrowHelper.ThrowArgumentException<(TX X, TY Y)>();
}
}