mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
Fix size error in BitMap.opaque_to_polygons
Previous estimate of upper limit on size was incorrect
This commit is contained in:
parent
ac350d6651
commit
feb55d26d2
@ -319,7 +319,7 @@ Vector<Vector2> BitMap::_march_square(const Rect2i &rect, const Point2i &start)
|
||||
prevx = stepx;
|
||||
prevy = stepy;
|
||||
|
||||
ERR_FAIL_COND_V((int)count > width * height, _points);
|
||||
ERR_FAIL_COND_V((int)count > 2 * (width * height + 1), _points);
|
||||
} while (curx != startx || cury != starty);
|
||||
return _points;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user