Skip to content

Commit 6ff61f5

Browse files
committed
Fix wrong variable used in battery button
1 parent e5d8f1c commit 6ff61f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5208,7 +5208,7 @@ public virtual float GetDataOf(CabViewControl cvc)
52085208
break;
52095209

52105210
case CABViewControlTypes.ORTS_BATTERY_SWITCH_COMMAND_BUTTON_OPEN:
5211-
data = LocomotivePowerSupply.BatterySwitch.CommandButtonOn ? 1 : 0;
5211+
data = LocomotivePowerSupply.BatterySwitch.CommandButtonOff ? 1 : 0;
52125212
break;
52135213

52145214
case CABViewControlTypes.ORTS_BATTERY_SWITCH_ON:

0 commit comments

Comments
 (0)