(5a377a8ee) Unstable v0.9.1000.0
This commit is contained in:
@@ -664,7 +664,7 @@ namespace FarseerPhysics.Dynamics
|
||||
}
|
||||
}
|
||||
|
||||
if (Enabled)
|
||||
if (Enabled && World != null)
|
||||
{
|
||||
IBroadPhase broadPhase = World.ContactManager.BroadPhase;
|
||||
fixture.DestroyProxies(broadPhase);
|
||||
@@ -677,7 +677,7 @@ namespace FarseerPhysics.Dynamics
|
||||
((PolygonShape)fixture.Shape).Vertices.AttachedToBody = false;
|
||||
#endif
|
||||
|
||||
if (World.FixtureRemoved != null)
|
||||
if (World?.FixtureRemoved != null)
|
||||
World.FixtureRemoved(World, this, fixture);
|
||||
|
||||
ResetMassData();
|
||||
|
||||
Reference in New Issue
Block a user