mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-14 23:29:52 +00:00
Fixed crash in rcBuildPolyMesh() when one of the contours had zero vertices.
This commit is contained in:
@@ -617,6 +617,8 @@ void rcDebugDrawContours(rcDebugDraw* dd, const rcContourSet& cset, const float
|
||||
for (int i = 0; i < cset.nconts; ++i)
|
||||
{
|
||||
const rcContour& c = cset.conts[i];
|
||||
if (!c.nverts)
|
||||
continue;
|
||||
unsigned int color = intToCol(c.reg, a);
|
||||
|
||||
for (int j = 0; j < c.nverts; ++j)
|
||||
|
||||
Reference in New Issue
Block a user