diff options
author | rubidium <rubidium@openttd.org> | 2008-04-07 20:03:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-07 20:03:46 +0000 |
commit | 973997e896aeaaf36780abc3c51b1c115cec0535 (patch) | |
tree | 6b2bd1bb1a800edf7ded9987b1d3796b6f33a7c3 /src/openttd.cpp | |
parent | f35612bd21374ee0aa77c0a79b6546922d43add0 (diff) | |
download | openttd-973997e896aeaaf36780abc3c51b1c115cec0535.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.cpp | 4 |
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); } } |