From f03efd2dca6c8d533a1979ab6d1d94bc91c64df1 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Wed, 30 Oct 2013 18:07:41 -0300 Subject: [PATCH] Fixed Contact:getChildren to be 1-based --- src/modules/physics/box2d/wrap_Contact.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/physics/box2d/wrap_Contact.cpp b/src/modules/physics/box2d/wrap_Contact.cpp index ce2fd0b0b..cdaafc32d 100644 --- a/src/modules/physics/box2d/wrap_Contact.cpp +++ b/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; }