Browse Source

Fixed Contact:getChildren to be 1-based

Alex Szpakowski 11 years ago
parent
commit
f03efd2dca
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/physics/box2d/wrap_Contact.cpp

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

@@ -118,8 +118,8 @@ int w_Contact_getChildren(lua_State *L)
 	Contact *t = luax_checkcontact(L, 1);
 	int a, b;
 	t->getChildren(a, b);
-	lua_pushnumber(L, a);
-	lua_pushnumber(L, b);
+	lua_pushnumber(L, a + 1);
+	lua_pushnumber(L, b + 1);
 	return 2;
 }