From e68b2088ce090c1eaf182e120195d8453f4f02c2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 6 Apr 2008 07:07:21 +0000 Subject: (svn r12586) -Codechange: do not access an order's refit variables directly. --- src/openttd.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index 74e623a44..bbe017a35 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1987,13 +1987,11 @@ bool AfterLoadGame() Vehicle *v; FOR_ALL_ORDERS(order) { - order->refit_cargo = CT_NO_REFIT; - order->refit_subtype = CT_NO_REFIT; + order->SetRefit(CT_NO_REFIT); } FOR_ALL_VEHICLES(v) { - v->current_order.refit_cargo = CT_NO_REFIT; - v->current_order.refit_subtype = CT_NO_REFIT; + v->current_order.SetRefit(CT_NO_REFIT); } } -- cgit v1.2.3-70-g09d2