summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-07 20:03:46 +0000
committerrubidium <rubidium@openttd.org>2008-04-07 20:03:46 +0000
commitd74c6ffb6248b65171b702ab038415904de0b7dd (patch)
tree6b2bd1bb1a800edf7ded9987b1d3796b6f33a7c3 /src/openttd.cpp
parent42a66ef9903d12cf748ddc6b3c4dcfaaef1c5efd (diff)
downloadopenttd-d74c6ffb6248b65171b702ab038415904de0b7dd.tar.xz
(svn r12617) -Codechange: add type safety to the Order's load and unload types.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 967f4e210..ec69aafb8 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2306,8 +2306,8 @@ bool AfterLoadGame()
Order *order;
FOR_ALL_ORDERS(order) {
if (order->IsType(OT_GOTO_STATION) && GetStation(order->GetDestination())->IsBuoy()) {
- order->SetLoadType(0);
- order->SetUnloadType(0);
+ order->SetLoadType(OLF_LOAD_IF_POSSIBLE);
+ order->SetUnloadType(OUF_UNLOAD_IF_POSSIBLE);
}
}