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
@@ -19,6 +19,7 @@
**/
#include "wrap_FrictionJoint.h"
#include "wrap_Physics.h"
namespace love
{
@@ -39,7 +40,7 @@ int w_FrictionJoint_setMaxForce(lua_State *L)
{
FrictionJoint *t = luax_checkfrictionjoint(L, 1);
float arg1 = (float)luaL_checknumber(L, 2);
t->setMaxForce(arg1);
ASSERT_GUARD(t->setMaxForce(arg1);)
return 0;
}
@@ -54,7 +55,7 @@ int w_FrictionJoint_setMaxTorque(lua_State *L)
{
FrictionJoint *t = luax_checkfrictionjoint(L, 1);
float arg1 = (float)luaL_checknumber(L, 2);
t->setMaxTorque(arg1);
ASSERT_GUARD(t->setMaxTorque(arg1);)
return 0;
}