File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ public override void Draw(SpriteBatch spriteBatch)
4545
4646 var loco = Viewer . PlayerLocomotive as MSTSLocomotive ;
4747 var cabViewFrontRear = loco . UsingRearCab ? 1 : 0 ;
48- var itemsFrontCount = loco . CabViewList [ ( int ) CabViewType . Front ] . CVFFile . CabViewControls . Count ( ) - 1 ;
49- var itemsRearCount = loco . CabViewList . Count > 1 ? loco . CabViewList [ ( int ) CabViewType . Rear ] . CVFFile . CabViewControls . Count ( ) - 1 : 0 ;
48+ var itemsFrontCount = loco . CabViewList [ ( int ) CabViewType . Front ] . CVFFile . CabViewControls . Count ( ) ;
49+ var itemsRearCount = loco . CabViewList . Count > 1 ? loco . CabViewList [ ( int ) CabViewType . Rear ] . CVFFile . CabViewControls . Count ( ) : 0 ;
5050
5151 foreach ( var controlRenderer in cabRenderer . ControlMap . Values . Skip ( cabViewFrontRear == 0 ? 0 : itemsFrontCount ) . Take ( cabViewFrontRear == 0 ? itemsFrontCount : itemsRearCount ) )
5252 {
You can’t perform that action at this time.
0 commit comments