Skip to content

Commit 8e14454

Browse files
authored
Merge pull request #843 from Csantucci/fix-freightanim-weight-bug
Fix for https://bugs.launchpad.net/or/+bug/2024295 Freight weight only added for first wagon
2 parents a80e868 + eb7efa3 commit 8e14454

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/FreightAnimations.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,7 @@ public FreightAnimations(FreightAnimations copyFACollection, MSTSWagon wagon)
293293
ContinuousFreightAnimationsPresent = copyFACollection.ContinuousFreightAnimationsPresent;
294294
StaticFreightAnimationsPresent = copyFACollection.StaticFreightAnimationsPresent;
295295
DiscreteFreightAnimationsPresent = copyFACollection.DiscreteFreightAnimationsPresent;
296-
297-
// Load(Wagon, LoadDataList);
296+
StaticFreightWeight = copyFACollection.StaticFreightWeight;
298297
}
299298

300299
public void Load(string loadFilePath, LoadPosition loadPosition, LoadState loadState)

0 commit comments

Comments
 (0)