From fb1c4eccd840cd05ee3bf00c3b757829c9c72ef0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 6 Apr 2008 15:09:45 +0000 Subject: (svn r12593) -Codechange: hide Order's flags in most of the code. --- src/openttd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index 923a67af5..967f4e210 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2306,7 +2306,8 @@ bool AfterLoadGame() Order *order; FOR_ALL_ORDERS(order) { if (order->IsType(OT_GOTO_STATION) && GetStation(order->GetDestination())->IsBuoy()) { - order->flags = 0; + order->SetLoadType(0); + order->SetUnloadType(0); } } -- cgit v1.2.3-70-g09d2