summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-06 15:09:45 +0000
committerrubidium <rubidium@openttd.org>2008-04-06 15:09:45 +0000
commit53d101cc992ff7e5a4839e0598b1b88170300e74 (patch)
tree902d510152ab0f94357b64fda309b662a1637e12 /src/openttd.cpp
parente150643d319c82c54a8246b0aeb8c30a6f2a52d5 (diff)
downloadopenttd-53d101cc992ff7e5a4839e0598b1b88170300e74.tar.xz
(svn r12593) -Codechange: hide Order's flags in most of the code.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 2 insertions, 1 deletions
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);
}
}