mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Fixed some uncaught exceptions in love.physics
This commit is contained in:
@@ -39,7 +39,7 @@ int w_ChainShape_setNextVertex(lua_State *L)
|
||||
ChainShape *c = luax_checkchainshape(L, 1);
|
||||
float x = (float)luaL_checknumber(L, 2);
|
||||
float y = (float)luaL_checknumber(L, 3);
|
||||
c->setNextVertex(x, y);
|
||||
ASSERT_GUARD(c->setNextVertex(x, y);)
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ int w_ChainShape_setPrevVertex(lua_State *L)
|
||||
ChainShape *c = luax_checkchainshape(L, 1);
|
||||
float x = (float)luaL_checknumber(L, 2);
|
||||
float y = (float)luaL_checknumber(L, 3);
|
||||
c->setPrevVertex(x, y);
|
||||
ASSERT_GUARD(c->setPrevVertex(x, y);)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user