Fix days_in_transit type in CargoPacket constructor

See: https://github.com/OpenTTD/OpenTTD/issues/10707
This commit is contained in:
Jonathan G Rennison
2023-04-24 18:53:45 +01:00
parent 94b5b956c7
commit 7d6307a5ce
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ CargoPacket::CargoPacket(StationID source, TileIndex source_xy, uint16 count, So
* @note We have to zero memory ourselves here because we are using a 'new'
* that, in contrary to all other pools, does not memset to 0.
*/
CargoPacket::CargoPacket(uint16 count, byte days_in_transit, StationID source, TileIndex source_xy, TileIndex loaded_at_xy, Money feeder_share, SourceType source_type, SourceID source_id) :
CargoPacket::CargoPacket(uint16 count, uint16 days_in_transit, StationID source, TileIndex source_xy, TileIndex loaded_at_xy, Money feeder_share, SourceType source_type, SourceID source_id) :
feeder_share(feeder_share),
count(count),
days_in_transit(days_in_transit),