diff --git a/src/DotRecast.Detour/DtNode.cs b/src/DotRecast.Detour/DtNode.cs index e899c10..c874c38 100644 --- a/src/DotRecast.Detour/DtNode.cs +++ b/src/DotRecast.Detour/DtNode.cs @@ -47,12 +47,12 @@ namespace DotRecast.Detour if (0 != compare) return compare; - return a.index.CompareTo(b.index); + return a.ptr.CompareTo(b.ptr); } public override string ToString() { - return $"Node [index={index} id={id} cost={cost} total={total}]"; + return $"Node [ptr={ptr} id={id} cost={cost} total={total}]"; } } } \ No newline at end of file