(svn r12586) -Codechange: do not access an order's refit variables directly.

This commit is contained in:
rubidium
2008-04-06 07:07:21 +00:00
parent 630d5ad766
commit e68b2088ce
6 changed files with 55 additions and 25 deletions

View File

@@ -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);
}
}