Skip to content

Commit

Permalink
fix #93
Browse files Browse the repository at this point in the history
  • Loading branch information
dkavolis committed Jul 4, 2020
1 parent 21f0edb commit d1ab852
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d1ab852

Please sign in to comment.