From d1ab852e59e9de23da01ab603bac63ae12f342d8 Mon Sep 17 00:00:00 2001 From: dkavolis <12998363+dkavolis@users.noreply.github.com> Date: Sat, 4 Jul 2020 14:59:34 +0100 Subject: [PATCH] fix #93 --- FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs b/FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs index 84b489d05..393cb6969 100644 --- a/FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs +++ b/FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs @@ -226,8 +226,8 @@ private void CalculateAndApplyVesselAeroProperties() vessel.srfSpeed, MachNumber, FlightGlobals.getExternalTemperature((float)vessel - .altitude, - vessel.mainBody), + .altitude, + vessel.mainBody), vessel.mainBody.atmosphereAdiabaticIndex); float skinFrictionDragCoefficient = (float)FARAeroUtil.SkinFrictionDrag(ReynoldsNumber, MachNumber); @@ -307,7 +307,7 @@ double altitude center); foreach (FARWingAerodynamicModel curWing in _legacyWingModels) - if (!(curWing is null)) + if (curWing != null) center.AddForce(curWing.transform.position, curWing.PrecomputeCenterOfLift(velocityWorldVector, machNumber,