Use [[no_unique_address]] in CargoList

Re-use tail padding of ring_buffer for count
pull/642/head
Jonathan G Rennison 3 months ago
parent 0d0357bd40
commit c8f5585ba7

@ -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);

Loading…
Cancel
Save