diff options
author | rubidium <rubidium@openttd.org> | 2009-05-23 12:27:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-23 12:27:42 +0000 |
commit | 86710c5185b43fc989c4a7536300b1752c3c4d16 (patch) | |
tree | c36413353346b181fe288488c73afe8a6de5563c /src/train_cmd.cpp | |
parent | f490394aa8d78f4118e73beccc724cbad3b44854 (diff) | |
download | openttd-86710c5185b43fc989c4a7536300b1752c3c4d16.tar.xz |
(svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehicle
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index d0bba76b6..8bbd9010d 100644 --- 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()) { |