File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Source/Orts.Simulation/Simulation/RollingStocks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -650,7 +650,7 @@ public virtual void LoadFromWagFile(string wagFilePath)
650650 BrakeSystems . Remove ( key ) ;
651651 }
652652 BrakeModeNames = BrakeSystems . Keys . Select ( k => k . BrakeMode . ToString ( ) ) . Distinct ( ) . ToArray ( ) ;
653- BrakeSystem = BrakeSystem ?? MSTSBrakeSystem . Create ( CarBrakeSystemType , this ) ;
653+ BrakeSystem = BrakeSystemAlt = BrakeSystem ?? MSTSBrakeSystem . Create ( CarBrakeSystemType , this ) ;
654654
655655 BrakeSystem . InitialMaxBrakeForceN = ParsetimeBrakeForces . MaxBrakeForceN ;
656656 BrakeSystem . InitialMaxHandbrakeForceN = ParsetimeBrakeForces . MaxHandbrakeForceN ;
@@ -1110,7 +1110,7 @@ void HandleIncompatibleBrakesystems(BrakeSystem newBrakeSystem)
11101110 {
11111111 if ( newBrakeSystem is VacuumSinglePipe ^ BrakeSystem is VacuumSinglePipe )
11121112 {
1113- if ( BrakeSystemAlt == null )
1113+ if ( BrakeSystemAlt == null || BrakeSystemAlt == BrakeSystem )
11141114 {
11151115 BrakeSystemAlt = BrakeSystem . CreateNewLike ( newBrakeSystem , this ) . InitializeDefault ( ) ;
11161116
You can’t perform that action at this time.
0 commit comments