Fixed Contact:getChildren to be 1-based

This commit is contained in:
Alex Szpakowski
2013-10-30 18:07:41 -03:00
parent 8cc5364d15
commit f03efd2dca
+2 -2
View File
@@ -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;
}