diff --git a/CHANGELOG.md b/CHANGELOG.md index affc210..5288a1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Changed `DtTileCacheBuilder` to a static class - Changed `DtTileCacheLayerHeaderReader` to a static class - Changed `Dictionary>` to `DtMeshTile[]` to optimize memory usage - +- Changed `MAX_STEER_POINTS` from class constant to local. + ### Removed - Nothing diff --git a/src/DotRecast.Detour/DtPathUtils.cs b/src/DotRecast.Detour/DtPathUtils.cs index 3141ba1..7dbaa6b 100644 --- a/src/DotRecast.Detour/DtPathUtils.cs +++ b/src/DotRecast.Detour/DtPathUtils.cs @@ -28,13 +28,13 @@ namespace DotRecast.Detour public static class DtPathUtils { - private const int MAX_STEER_POINTS = 3; - public static bool GetSteerTarget(DtNavMeshQuery navQuery, RcVec3f startPos, RcVec3f endPos, float minTargetDist, List path, int pathSize, out RcVec3f steerPos, out int steerPosFlag, out long steerPosRef) { + const int MAX_STEER_POINTS = 3; + steerPos = RcVec3f.Zero; steerPosFlag = 0; steerPosRef = 0;