Make Joint::getReactionForce use the right stack position

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-10-02 09:28:39 -04:00
parent 5d26c564e0
commit ffef6f58a9
+1 -1
View File
@@ -97,7 +97,7 @@ namespace box2d
int Joint::getReactionForce(lua_State * L)
{
float dt = (float)luaL_checknumber(L, 2);
float dt = (float)luaL_checknumber(L, 1);
b2Vec2 v = Physics::scaleUp(joint->GetReactionForce(dt));
lua_pushnumber(L, v.x);
lua_pushnumber(L, v.y);