diff --git a/Siv3D/src/Siv3D/Polygon/PolygonDetail.cpp b/Siv3D/src/Siv3D/Polygon/PolygonDetail.cpp index cc62e0ead..9c283e50e 100644 --- a/Siv3D/src/Siv3D/Polygon/PolygonDetail.cpp +++ b/Siv3D/src/Siv3D/Polygon/PolygonDetail.cpp @@ -1210,7 +1210,7 @@ namespace s3d { Polygon CalculateBuffer(const LineString& points, const double distance, CloseRing closeRing, int32 bufferQuality) { - if (points.size() < 2) + if (points.isEmpty()) { return{}; } @@ -1290,7 +1290,7 @@ namespace s3d Polygon CalculateRoundBuffer(const LineString& points, const double distance, CloseRing closeRing, int32 bufferQuality) { - if (points.size() < 2) + if (points.isEmpty()) { return{}; }