1
0
Fork 0

Codechange: strongly type OrderBackupID

pull/13511/head
Rubidium 2025-01-31 21:47:47 +01:00 committed by rubidium42
parent cb3db3cedd
commit d61d643906
1 changed files with 2 additions and 2 deletions

View File

@ -18,11 +18,11 @@
#include "saveload/saveload.h" #include "saveload/saveload.h"
/** Unique identifier for an order backup. */ /** Unique identifier for an order backup. */
typedef uint8_t OrderBackupID; using OrderBackupID = PoolID<uint8_t, struct OrderBackupIDTag, 255, 0xFF>;
struct OrderBackup; struct OrderBackup;
/** The pool type for order backups. */ /** 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. */ /** The pool with order backups. */
extern OrderBackupPool _order_backup_pool; extern OrderBackupPool _order_backup_pool;