1
0
Fork 0

Codechange: explicitly initialise CargoPayment member variables

pull/13602/head
Rubidium 2025-02-17 22:26:54 +01:00 committed by rubidium42
parent 53dd1258a7
commit bb81139c1f
1 changed files with 6 additions and 6 deletions

View File

@ -23,13 +23,13 @@ extern CargoPaymentPool _cargo_payment_pool;
*/
struct CargoPayment : CargoPaymentPool::PoolItem<&_cargo_payment_pool> {
/* CargoPaymentID index member of CargoPaymentPool is 4 bytes. */
StationID current_station; ///< NOSAVE: The current station
Company *owner; ///< NOSAVE: The owner of the vehicle
StationID current_station = StationID::Invalid(); ///< NOSAVE: The current station
Company *owner = nullptr; ///< NOSAVE: The owner of the vehicle
Vehicle *front; ///< The front vehicle to do the payment of
Money route_profit; ///< The amount of money to add/remove from the bank account
Money visual_profit; ///< The visual profit to show
Money visual_transfer; ///< The transfer credits to be shown
Vehicle *front = nullptr; ///< The front vehicle to do the payment of
Money route_profit = 0; ///< The amount of money to add/remove from the bank account
Money visual_profit = 0; ///< The visual profit to show
Money visual_transfer = 0; ///< The transfer credits to be shown
/** Constructor for pool saveload */
CargoPayment() {}