mirror of https://github.com/OpenTTD/OpenTTD
Codechange: strongly type OrderBackupID
parent
cb3db3cedd
commit
d61d643906
|
@ -18,11 +18,11 @@
|
|||
#include "saveload/saveload.h"
|
||||
|
||||
/** Unique identifier for an order backup. */
|
||||
typedef uint8_t OrderBackupID;
|
||||
using OrderBackupID = PoolID<uint8_t, struct OrderBackupIDTag, 255, 0xFF>;
|
||||
struct OrderBackup;
|
||||
|
||||
/** The pool type for order backups. */
|
||||
typedef Pool<OrderBackup, OrderBackupID, 1, 256> OrderBackupPool;
|
||||
using OrderBackupPool = Pool<OrderBackup, OrderBackupID, 1, OrderBackupID::End().base()>;
|
||||
/** The pool with order backups. */
|
||||
extern OrderBackupPool _order_backup_pool;
|
||||
|
||||
|
|
Loading…
Reference in New Issue