Browse Source

Fix World:getCallbacks/getContactFilter to not return any arguments passed (though you shouldn't be passing any arguments anyway, that's silly)

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

+ 2 - 2
src/modules/physics/box2d/World.cpp

@@ -310,7 +310,7 @@ namespace box2d
 		end.ref ? end.ref->push() : lua_pushnil(L);
 		presolve.ref ? presolve.ref->push() : lua_pushnil(L);
 		postsolve.ref ? postsolve.ref->push() : lua_pushnil(L);
-		return lua_gettop(L);
+		return 4;
 	}
 	
 	int World::setContactFilter(lua_State * L)
@@ -324,7 +324,7 @@ namespace box2d
 	int World::getContactFilter(lua_State * L)
 	{
 		filter.ref ? filter.ref->push() : lua_pushnil(L);
-		return lua_gettop(L);
+		return 1;
 	}
 
 	void World::setGravity(float x, float y)