diff --git a/src/DotRecast.Detour.Crowd/DtCrowd.cs b/src/DotRecast.Detour.Crowd/DtCrowd.cs index 11504f0..892c4b3 100644 --- a/src/DotRecast.Detour.Crowd/DtCrowd.cs +++ b/src/DotRecast.Detour.Crowd/DtCrowd.cs @@ -168,7 +168,7 @@ namespace DotRecast.Detour.Crowd } // Allocate temp buffer for merging paths. - _maxPathResult = 256; + _maxPathResult = DtCrowdConst.MAX_PATH_RESULT; _pathQ = new DtPathQueue(config); _agents = new List(); diff --git a/src/DotRecast.Detour.Crowd/DtCrowdConst.cs b/src/DotRecast.Detour.Crowd/DtCrowdConst.cs index fc1a836..596a4a9 100644 --- a/src/DotRecast.Detour.Crowd/DtCrowdConst.cs +++ b/src/DotRecast.Detour.Crowd/DtCrowdConst.cs @@ -30,5 +30,6 @@ public const int MAX_ITERS_PER_UPDATE = 100; public const int MAX_PATHQUEUE_NODES = 4096; public const int MAX_COMMON_NODES = 512; + public const int MAX_PATH_RESULT = 256; } } \ No newline at end of file