(svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehicle

This commit is contained in:
rubidium
2009-05-23 12:27:42 +00:00
parent f490394aa8
commit 86710c5185
8 changed files with 60 additions and 51 deletions

View File

@@ -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()) {