Fix 1.6 build and indexed map clearing
This commit is contained in:
@@ -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)>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user