GRAPHICS: Fix regression in polygon drawing

This commit is contained in:
Eugene Sandulenko 2016-02-14 14:45:45 +01:00
parent acdddf8ade
commit d2303ac6dd

View File

@ -367,7 +367,7 @@ void drawPolygonScan(int *polyX, int *polyY, int npoints, Common::Rect &bbox, in
}
// Sort the nodes
Common::sort(nodeX, ARRAYEND(nodeX));
Common::sort(nodeX, &nodeX[nodes]);
// Fill the pixels between node pairs.
for (i = 0; i < nodes; i += 2) {