Fix Collider:addShape and Collider:removeShape;

This commit is contained in:
bjorn 2019-10-08 15:45:53 -07:00
parent 6ef27ec7cc
commit ac53f5a56f
1 changed files with 2 additions and 2 deletions

View File

@ -17,14 +17,14 @@ static int l_lovrColliderGetWorld(lua_State* L) {
static int l_lovrColliderAddShape(lua_State* L) {
Collider* collider = luax_checktype(L, 1, Collider);
Shape* shape = luax_checktype(L, 2, Shape);
Shape* shape = luax_checkshape(L, 2);
lovrColliderAddShape(collider, shape);
return 0;
}
static int l_lovrColliderRemoveShape(lua_State* L) {
Collider* collider = luax_checktype(L, 1, Collider);
Shape* shape = luax_checktype(L, 2, Shape);
Shape* shape = luax_checkshape(L, 2);
lovrColliderRemoveShape(collider, shape);
return 0;
}