Skip to content

Commit

Permalink
love.math.triangulate's error message when there are too few vertices…
Browse files Browse the repository at this point in the history
… includes the given vert count.
  • Loading branch information
slime73 committed Dec 20, 2024
1 parent 4f514a6 commit 8ca321b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/math/wrap_Math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ int w_triangulate(lua_State *L)
}

if (vertices.size() < 3)
return luaL_error(L, "Need at least 3 vertices to triangulate");
return luaL_error(L, "Need at least 3 vertices to triangulate (got %d).", (int)vertices.size());

std::vector<Triangle> triangles;

Expand Down

0 comments on commit 8ca321b

Please sign in to comment.