Browse Source

Make Joint::getReactionForce use the right stack position

--HG--
branch : box2d-update
Bill Meltsner 14 years ago
parent
commit
ffef6f58a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/physics/box2d/Joint.cpp

+ 1 - 1
src/modules/physics/box2d/Joint.cpp

@@ -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);