diff options
author | rubidium <rubidium@openttd.org> | 2008-03-28 16:31:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-03-28 16:31:26 +0000 |
commit | 450d234745250712b90a8ce91a8fb43673cb9204 (patch) | |
tree | 4a23c83aa3afc6b2350b16b9e3d191316c6ebfb4 /src/order_cmd.cpp | |
parent | cb96caa3d234e461fb3cf9ff9a5520a3318b94f9 (diff) | |
download | openttd-450d234745250712b90a8ce91a8fb43673cb9204.tar.xz |
(svn r12466) -Codechange: move DestinationID to a more logical location.
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r-- | src/order_cmd.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index b968a2852..044494404 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -25,6 +25,13 @@ #include "table/strings.h" +/* DestinationID must be at least as large as every these below, because it can + * be any of them + */ +assert_compile(sizeof(DestinationID) >= sizeof(DepotID)); +assert_compile(sizeof(DestinationID) >= sizeof(WaypointID)); +assert_compile(sizeof(DestinationID) >= sizeof(StationID)); + TileIndex _backup_orders_tile; BackuppedOrders _backup_orders_data; |