Fixed some uncaught exceptions in love.physics

This commit is contained in:
Alex Szpakowski
2013-07-02 02:27:08 -03:00
parent 8084096937
commit 3880646a6a
7 changed files with 29 additions and 23 deletions
@@ -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;
}