Fix love.physics.newPolygonBody arg checking

This commit is contained in:
Sasha Szpakowski
2026-08-21 12:53:49 -03:00
parent 40c09a062c
commit 042d4a1e1c
+1 -1
View File
@@ -141,7 +141,7 @@ int w_newPolygonBody(lua_State *L)
if (!Body::getConstant(typestr, btype))
return luax_enumerror(L, "Body type", Body::getConstants(btype), typestr);
int argc = lua_gettop(L);
int argc = lua_gettop(L) - 2;
bool istable = lua_istable(L, 3);
if (istable)