mirror of
https://github.com/love2d/love.git
synced 2026-08-28 18:26:55 +02:00
Fix love.physics.newPolygonBody arg checking
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user