diff options
author | truelight <truelight@openttd.org> | 2006-08-26 17:16:51 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-26 17:16:51 +0000 |
commit | c6f4f954388142a1d5b85993be5574710865ac98 (patch) | |
tree | 6f8b3fc024528fc088a38079d9fcf7fc6dd59e45 /order.h | |
parent | 39ae8d29e1ad70a40a19722469e7cb3a7a1c44a0 (diff) | |
download | openttd-c6f4f954388142a1d5b85993be5574710865ac98.tar.xz |
(svn r6145) -Codechange: added OrderID to indicate Order indexes out of the pool
Diffstat (limited to 'order.h')
-rw-r--r-- | order.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,7 +82,7 @@ typedef struct Order { struct Order *next; ///< Pointer to next order. If NULL, end of list - uint16 index; ///< Index of the order, is not saved or anything, just for reference + OrderID index; ///< Index of the order, is not saved or anything, just for reference } Order; #define MAX_BACKUP_ORDER_COUNT 40 @@ -103,7 +103,7 @@ extern MemoryPool _order_pool; /** * Get the pointer to the order with index 'index' */ -static inline Order *GetOrder(uint index) +static inline Order *GetOrder(OrderID index) { return (Order*)GetItemFromPool(&_order_pool, index); } |