Recast: fix bug in rcMarkCylinderArea (XZY -> XYZ)

Stack variable 'miny' should be nulled if its < 0. This was missed during the XZY -> XYZ conversion.
This commit is contained in:
Kawe Mazidjatari 2024-07-13 13:11:38 +02:00
parent 975fa0ebbe
commit f01e7ae55a

View File

@ -557,7 +557,7 @@ void rcMarkCylinderArea(rcContext* ctx, const float* pos,
if (minx < 0) minx = 0;
if (maxx >= chf.width) maxx = chf.width-1;
if (miny < 0) minz = 0;
if (miny < 0) miny = 0;
if (maxy >= chf.height) maxy = chf.height-1;