summaryrefslogtreecommitdiff
path: root/src/elrail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r--src/elrail.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp
index d53ade09e..0cf7b905d 100644
--- a/src/elrail.cpp
+++ b/src/elrail.cpp
@@ -573,8 +573,8 @@ bool SettingsDisableElrail(int32 p1)
FOR_ALL_TRAINS(t) {
/* power and acceleration is cached only for front engines */
if (t->IsFrontEngine()) {
- TrainPowerChanged(t);
- UpdateTrainAcceleration(t);
+ t->PowerChanged();
+ t->UpdateAcceleration();
}
}