mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fixed Contact:getChildren to be 1-based
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user