openfl / box2d

Haxe port of Box2D, a popular rigid-body 2D physics engine
Other
95 stars 28 forks source link

B2Fixture.setFilterData has wrong condition return #20

Closed fnaith closed 5 years ago

fnaith commented 5 years ago

In https://github.com/openfl/box2d/blob/master/box2D/dynamics/B2Fixture.hx Line: 106

if (m_body != null) return;

should be

if (m_body == null) return;

jgranick commented 5 years ago

Thank you!