remove nullable in CompareItemX&Y

This commit is contained in:
ikpil 2023-04-03 23:56:49 +09:00
parent 0c0ac0bde8
commit 961d4e9278
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ namespace DotRecast.Recast.Geom
private class CompareItemX : IComparer<BoundsItem> private class CompareItemX : IComparer<BoundsItem>
{ {
public int Compare(BoundsItem? a, BoundsItem? b) public int Compare(BoundsItem a, BoundsItem b)
{ {
return a.bmin[0].CompareTo(b.bmin[0]); return a.bmin[0].CompareTo(b.bmin[0]);
} }
@ -42,7 +42,7 @@ namespace DotRecast.Recast.Geom
private class CompareItemY : IComparer<BoundsItem> private class CompareItemY : IComparer<BoundsItem>
{ {
public int Compare(BoundsItem? a, BoundsItem? b) public int Compare(BoundsItem a, BoundsItem b)
{ {
return a.bmin[1].CompareTo(b.bmin[1]); return a.bmin[1].CompareTo(b.bmin[1]);
} }