diff --git a/FerramAerospaceResearch/FARGUI/FARFlightGUI/PhysicsCalcs.cs b/FerramAerospaceResearch/FARGUI/FARFlightGUI/PhysicsCalcs.cs index b8764f184..6d99b01ee 100644 --- a/FerramAerospaceResearch/FARGUI/FARFlightGUI/PhysicsCalcs.cs +++ b/FerramAerospaceResearch/FARGUI/FARFlightGUI/PhysicsCalcs.cs @@ -136,7 +136,7 @@ private void CalculateTotalAeroForce() return; foreach (FARAeroPartModule m in _currentAeroModules) { - if (m is null) + if (m is null || m == null) continue; aeroForces.AddForce(m.transform.position, m.totalWorldSpaceAeroForce); aeroForces.AddTorque(m.worldSpaceTorque);