Use [[no_unique_address]] in CargoList

Re-use tail padding of ring_buffer for count
This commit is contained in:
Jonathan G Rennison
2024-01-24 19:03:18 +00:00
parent 0d0357bd40
commit c8f5585ba7

View File

@@ -318,10 +318,10 @@ public:
};
protected:
uint count; ///< Cache for the number of cargo entities.
uint64_t cargo_periods_in_transit; ///< Cache for the sum of number of cargo aging periods in transit of each entity; comparable to man-hours.
Tcont packets; ///< The cargo packets in this list.
NO_UNIQUE_ADDRESS Tcont packets; ///< The cargo packets in this list.
uint count; ///< Cache for the number of cargo entities.
void AddToCache(const CargoPacket *cp);