Merge pull request #63 from speakfool/master

Fixed a memory corrupt in DetourCrowd
This commit is contained in:
Mikko Mononen 2014-12-31 20:25:08 +02:00
commit b3f1e28c71

View File

@ -262,7 +262,7 @@ void dtObstacleAvoidanceQuery::addCircle(const float* pos, const float rad,
void dtObstacleAvoidanceQuery::addSegment(const float* p, const float* q)
{
if (m_nsegments > m_maxSegments)
if (m_nsegments >= m_maxSegments)
return;
dtObstacleSegment* seg = &m_segments[m_nsegments++];