Codechange: explicitly initialise OrderBackup and OrderList member variables

This commit is contained in:
Rubidium
2025-02-18 18:27:49 +01:00
committed by rubidium42
parent 0a285e1a86
commit 5ccbaa6990
3 changed files with 14 additions and 20 deletions
+5 -5
View File
@@ -34,12 +34,12 @@ struct OrderBackup : OrderBackupPool::PoolItem<&_order_backup_pool>, BaseConsist
private:
friend SaveLoadTable GetOrderBackupDescription(); ///< Saving and loading of order backups.
friend struct BKORChunkHandler; ///< Creating empty orders upon savegame loading.
uint32_t user; ///< The user that requested the backup.
TileIndex tile; ///< Tile of the depot where the order was changed.
GroupID group; ///< The group the vehicle was part of.
uint32_t user = 0; ///< The user that requested the backup.
TileIndex tile = INVALID_TILE; ///< Tile of the depot where the order was changed.
GroupID group = GroupID::Invalid(); ///< The group the vehicle was part of.
const Vehicle *clone; ///< Vehicle this vehicle was a clone of.
Order *orders; ///< The actual orders if the vehicle was not a clone.
const Vehicle *clone = nullptr; ///< Vehicle this vehicle was a clone of.
Order *orders = nullptr; ///< The actual orders if the vehicle was not a clone.
/** Creation for savegame restoration. */
OrderBackup() {}