mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Update to box2d 2.4.1
This commit is contained in:
@@ -45,7 +45,7 @@ Fixture::Fixture(Body *body, Shape *shape, float density)
|
||||
udata->ref = nullptr;
|
||||
b2FixtureDef def;
|
||||
def.shape = shape->shape;
|
||||
def.userData = (void *)udata;
|
||||
def.userData = udata;
|
||||
def.density = density;
|
||||
fixture = body->body->CreateFixture(&def);
|
||||
this->retain();
|
||||
@@ -262,7 +262,7 @@ int Fixture::setUserData(lua_State *L)
|
||||
if (udata == nullptr)
|
||||
{
|
||||
udata = new fixtureudata();
|
||||
fixture->SetUserData((void *) udata);
|
||||
fixture->SetUserData(udata);
|
||||
}
|
||||
|
||||
if(!udata->ref)
|
||||
|
||||
Reference in New Issue
Block a user