forked from bit/DotRecastNetSim
parent
ea50e16a80
commit
9c6ddfffe0
|
@ -48,8 +48,7 @@ namespace DotRecast.Detour.Extras.Unity.Astar
|
||||||
int nodeCount = graphMeshData.CountNodes();
|
int nodeCount = graphMeshData.CountNodes();
|
||||||
if (connections.Count != nodeCount)
|
if (connections.Count != nodeCount)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("Inconsistent number of nodes in data file: " + nodeCount
|
throw new ArgumentException($"Inconsistent number of nodes in data file: {nodeCount} and connection files: {connections.Count}");
|
||||||
+ " and connecton files: " + connections.Count);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build BV tree
|
// Build BV tree
|
||||||
|
|
Loading…
Reference in New Issue