diff -r 6da867fa5429 -r 3387a84ddaba src/linetypes/subfilereference.cpp --- a/src/linetypes/subfilereference.cpp Sun Jan 19 02:54:48 2020 +0200 +++ b/src/linetypes/subfilereference.cpp Sun Jan 19 13:53:07 2020 +0200 @@ -57,9 +57,9 @@ polygons.reserve(polygons.size() + modelPolygons.size()); for (gl::Polygon polygon : modelPolygons) { - for (int i = 0; i < polygon.numPolygonVertices(); i += 1) + for (unsigned int i = 0; i < polygon.numPolygonVertices(); i += 1) { - polygon.vertices[i] = math::transform(polygon.vertices[1], this->transformation); + polygon.vertices[i] = math::transform(polygon.vertices[i], this->transformation); } if (polygon.color == colors::main) {