diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2868,7 +2868,7 @@ public: /* Wrap around. */ if (this->index >= this->v->GetNumOrders()) this->index = 0; - Order *order = GetVehicleOrder(this->v, this->index); + Order *order = this->v->GetOrder(this->index); assert(order != NULL); switch (order->GetType()) {