We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 707560c commit 254b6d4Copy full SHA for 254b6d4
Source/Orts.Simulation/Simulation/RollingStocks/MSTSWagon.cs
@@ -706,7 +706,7 @@ public virtual void LoadFromWagFile(string wagFilePath)
706
707
}
708
709
- void setIfNonZero(ref float result, float? value) { if (value > 0) result = (float)value; }
+ void setIfNonZero(ref float result, float? value) { if (value != null && value != 0) result = (float)value; }
710
711
// Read freight animation values from animation INCLUDE files
712
// Read (initialise) "common" (empty values first).
0 commit comments