Skip to content

Commit 0c860a3

Browse files
authored
Merge pull request #573 from cesarBLG/fix-battery-button
Fix wrong variable used in battery button
2 parents 71c4e89 + 6ff61f5 commit 0c860a3

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)