We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e78f2 commit ad0cd0eCopy full SHA for ad0cd0e
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerTransmissions/GearBox.cs
@@ -812,7 +812,7 @@ public void Initialize()
812
// Trace.TraceInformation("MaxTractiveForce - CarID {0} MaxTE {1} ")
813
}
814
// For purposes of calculating engine efficiency the tractive force at maximum gear speed needs to be used.
815
- if (GearBoxParams.GearBoxTractiveForceAtSpeedN[i] != 0)
+ if (GearBoxParams.GearBoxTractiveForceAtSpeedN != null && GearBoxParams.GearBoxTractiveForceAtSpeedN[i] != 0)
816
{
817
// Assume that user has entered the TE at max speed already in the Eng
818
Gears[i].TractiveForceatMaxSpeedN = GearBoxParams.GearBoxTractiveForceAtSpeedN[i] / Locomotive.DieselEngines.Count;
0 commit comments