diff --git a/DetourCrowd/Include/DetourCrowd.h b/DetourCrowd/Include/DetourCrowd.h index 2d486bf..03d9c46 100644 --- a/DetourCrowd/Include/DetourCrowd.h +++ b/DetourCrowd/Include/DetourCrowd.h @@ -53,6 +53,7 @@ struct dtCrowdAgentParams float separationWeight; unsigned char updateFlags; unsigned char obstacleAvoidanceType; + void* userData; }; struct dtCrowdAgent diff --git a/RecastDemo/Bin/Recast.app/Contents/MacOS/Recast b/RecastDemo/Bin/Recast.app/Contents/MacOS/Recast index 25791f7..340c8f0 100755 Binary files a/RecastDemo/Bin/Recast.app/Contents/MacOS/Recast and b/RecastDemo/Bin/Recast.app/Contents/MacOS/Recast differ diff --git a/RecastDemo/Source/CrowdTool.cpp b/RecastDemo/Source/CrowdTool.cpp index efb43f3..08f6963 100644 --- a/RecastDemo/Source/CrowdTool.cpp +++ b/RecastDemo/Source/CrowdTool.cpp @@ -325,6 +325,7 @@ void CrowdTool::handleClick(const float* s, const float* p, bool shift) { // Add dtCrowdAgentParams ap; + memset(&ap, 0, sizeof(ap)); ap.radius = m_sample->getAgentRadius(); ap.height = m_sample->getAgentHeight(); ap.maxAcceleration = 8.0f;