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)
650
650
BrakeSystems . Remove ( key ) ;
651
651
}
652
652
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 ) ;
654
654
655
655
BrakeSystem . InitialMaxBrakeForceN = ParsetimeBrakeForces . MaxBrakeForceN ;
656
656
BrakeSystem . InitialMaxHandbrakeForceN = ParsetimeBrakeForces . MaxHandbrakeForceN ;
@@ -1110,7 +1110,7 @@ void HandleIncompatibleBrakesystems(BrakeSystem newBrakeSystem)
1110
1110
{
1111
1111
if ( newBrakeSystem is VacuumSinglePipe ^ BrakeSystem is VacuumSinglePipe )
1112
1112
{
1113
- if ( BrakeSystemAlt == null )
1113
+ if ( BrakeSystemAlt == null || BrakeSystemAlt == BrakeSystem )
1114
1114
{
1115
1115
BrakeSystemAlt = BrakeSystem . CreateNewLike ( newBrakeSystem , this ) . InitializeDefault ( ) ;
1116
1116
You can’t perform that action at this time.
0 commit comments