diff --git a/StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs b/StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs index b634988..31f66f4 100755 --- a/StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs +++ b/StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs @@ -138,14 +138,14 @@ public void CopyResultsTo(ref BufferArray agentPaths, ref Comp var resultNodes = new NativeSlice(m_ResultNodes, resultPathInfo.begin, resultPathInfo.size); var agentPathBuffer = agentPaths[index]; - var pathLength = math.min(resultNodes.Length, agentPathBuffer.Length); + var pathLength = resultNodes.Length; for (var j = 0; j < pathLength; j++) { var id = new PolygonIdElement { Value = resultNodes[j] }; if (j < agentPathBuffer.Length) agentPathBuffer[j] = id; else - agentPathBuffer.Add(id); + agentPathBuffer.Add(id); //agent path buffer will be set to the largest size ever used... does it make sense to resize to what we're currently using? } var navigator = agentNavigators[index]; diff --git a/StressTesting/Packages/manifest.json b/StressTesting/Packages/manifest.json index 476471d..79bea66 100755 --- a/StressTesting/Packages/manifest.json +++ b/StressTesting/Packages/manifest.json @@ -1,6 +1,6 @@ { "dependencies": { - "com.unity.entities": "0.0.12-preview.15", + "com.unity.entities": "0.0.12-preview.21", "com.unity.package-manager-ui": "1.9.11", "com.unity.modules.ai": "1.0.0", "com.unity.modules.animation": "1.0.0", @@ -32,6 +32,5 @@ "com.unity.modules.vr": "1.0.0", "com.unity.modules.wind": "1.0.0", "com.unity.modules.xr": "1.0.0" - }, - "registry": "https://staging-packages.unity.com" + } }