Skip to content

Commit

Permalink
change index -> ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Feb 13, 2024
1 parent b26847d commit f0eb976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DotRecast.Detour/DtNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public static int ComparisonNodeTotal(DtNode a, DtNode b)
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}]";
}
}
}

0 comments on commit f0eb976

Please sign in to comment.