diff --git a/src/DotRecast.Detour/DtNavMeshQuery.cs b/src/DotRecast.Detour/DtNavMeshQuery.cs index 330b449..5842d3e 100644 --- a/src/DotRecast.Detour/DtNavMeshQuery.cs +++ b/src/DotRecast.Detour/DtNavMeshQuery.cs @@ -1801,7 +1801,7 @@ namespace DotRecast.Detour out RcVec3f resultPos, ref List visited) { resultPos = RcVec3f.Zero; - + if (null != visited) visited.Clear(); @@ -2630,7 +2630,7 @@ namespace DotRecast.Detour resultRef.Clear(); resultParent.Clear(); resultCost.Clear(); - + // Validate input int nverts = verts.Length; if (!m_nav.IsValidPolyRef(startRef) || null == verts || nverts < 3 || null == filter) @@ -3378,7 +3378,7 @@ namespace DotRecast.Detour { return DtStatus.DT_FAILURE | DtStatus.DT_INVALID_PARAM; } - + path.Clear(); List nodes = m_nodePool.FindNodes(endRef); diff --git a/src/DotRecast.Detour/DtSegInterval.cs b/src/DotRecast.Detour/DtSegInterval.cs index 6676c64..179c198 100644 --- a/src/DotRecast.Detour/DtSegInterval.cs +++ b/src/DotRecast.Detour/DtSegInterval.cs @@ -1,10 +1,10 @@ namespace DotRecast.Detour { - public class DtSegInterval + public readonly struct DtSegInterval { - public long refs; - public int tmin; - public int tmax; + public readonly long refs; + public readonly int tmin; + public readonly int tmax; public DtSegInterval(long refs, int tmin, int tmax) {