mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fixed some uncaught exceptions in love.physics
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
**/
|
||||
|
||||
#include "wrap_PrismaticJoint.h"
|
||||
#include "wrap_Physics.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -121,7 +122,7 @@ int w_PrismaticJoint_setUpperLimit(lua_State *L)
|
||||
{
|
||||
PrismaticJoint *t = luax_checkprismaticjoint(L, 1);
|
||||
float arg1 = (float)luaL_checknumber(L, 2);
|
||||
t->setUpperLimit(arg1);
|
||||
ASSERT_GUARD(t->setUpperLimit(arg1);)
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -129,7 +130,7 @@ int w_PrismaticJoint_setLowerLimit(lua_State *L)
|
||||
{
|
||||
PrismaticJoint *t = luax_checkprismaticjoint(L, 1);
|
||||
float arg1 = (float)luaL_checknumber(L, 2);
|
||||
t->setLowerLimit(arg1);
|
||||
ASSERT_GUARD(t->setLowerLimit(arg1);)
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -138,7 +139,7 @@ int w_PrismaticJoint_setLimits(lua_State *L)
|
||||
PrismaticJoint *t = luax_checkprismaticjoint(L, 1);
|
||||
float arg1 = (float)luaL_checknumber(L, 2);
|
||||
float arg2 = (float)luaL_checknumber(L, 3);
|
||||
t->setLimits(arg1, arg2);
|
||||
ASSERT_GUARD(t->setLimits(arg1, arg2);)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user