summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 67600098e..cc2d2d768 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -412,7 +412,7 @@ int Train::GetCurrentMaxSpeed() const
int st_max_speed = 120;
int delta_v = this->cur_speed / (distance_to_go + 1);
- if (this->max_speed > (this->cur_speed - delta_v)) {
+ if (max_speed > (this->cur_speed - delta_v)) {
st_max_speed = this->cur_speed - (delta_v / 10);
}