diff --git a/RecastDemo/Include/InputGeom.h b/RecastDemo/Include/InputGeom.h index 13cf430a..2aca9920 100644 --- a/RecastDemo/Include/InputGeom.h +++ b/RecastDemo/Include/InputGeom.h @@ -143,7 +143,6 @@ public: [[nodiscard]] const unsigned char* getOffMeshConnectionDirs() const { return offMeshConDirs; } [[nodiscard]] const unsigned char* getOffMeshConnectionAreas() const { return offMeshConAreas; } [[nodiscard]] const unsigned short* getOffMeshConnectionFlags() const { return offMeshConFlags; } - [[nodiscard]] const unsigned int* getOffMeshConnectionId() const { return offMeshConId; } void addOffMeshConnection( const float* spos, const float* epos, diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index cec0fb2f..d639c514 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -712,7 +712,7 @@ bool Sample_SoloMesh::build() params.offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); params.offMeshConAreas = inputGeometry->getOffMeshConnectionAreas(); params.offMeshConFlags = inputGeometry->getOffMeshConnectionFlags(); - params.offMeshConUserID = inputGeometry->getOffMeshConnectionId(); + params.offMeshConUserID = inputGeometry->offMeshConId; params.offMeshConCount = inputGeometry->offMeshConCount; params.walkableHeight = agentHeight; params.walkableRadius = agentRadius; diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index ae02dd37..7ce957b0 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -489,7 +489,7 @@ struct MeshProcess : dtTileCacheMeshProcess params->offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); params->offMeshConAreas = inputGeometry->getOffMeshConnectionAreas(); params->offMeshConFlags = inputGeometry->getOffMeshConnectionFlags(); - params->offMeshConUserID = inputGeometry->getOffMeshConnectionId(); + params->offMeshConUserID = inputGeometry->offMeshConId; params->offMeshConCount = inputGeometry->offMeshConCount; } } diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index b9288db0..b0729b4f 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -1212,7 +1212,7 @@ unsigned char* Sample_TileMesh::buildTileMesh( params.offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); params.offMeshConAreas = inputGeometry->getOffMeshConnectionAreas(); params.offMeshConFlags = inputGeometry->getOffMeshConnectionFlags(); - params.offMeshConUserID = inputGeometry->getOffMeshConnectionId(); + params.offMeshConUserID = inputGeometry->offMeshConId; params.offMeshConCount = inputGeometry->offMeshConCount; params.walkableHeight = agentHeight; params.walkableRadius = agentRadius;