diff options
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 901f46dde..ea0834041 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -568,7 +568,7 @@ bool SettingsDisableElrail(int32 p1) /* Fix the total power and acceleration for trains */ FOR_ALL_TRAINS(t) { /* power and acceleration is cached only for front engines */ - if (IsFrontEngine(t)) { + if (t->IsFrontEngine()) { TrainPowerChanged(t); UpdateTrainAcceleration(t); } |