mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Fixed a typo when love.math.triangulate errors
This commit is contained in:
@@ -104,7 +104,7 @@ BezierCurve *Math::newBezierCurve(const vector<Vector> &points)
|
||||
vector<Triangle> Math::triangulate(const vector<Vertex> &polygon)
|
||||
{
|
||||
if (polygon.size() < 3)
|
||||
throw love::Exception("Not a ploygon");
|
||||
throw love::Exception("Not a polygon");
|
||||
else if (polygon.size() == 3)
|
||||
return vector<Triangle>(1, Triangle(polygon[0], polygon[1], polygon[2]));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user