diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp index 28523e2844..a72e8fe622 100644 --- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -180,7 +180,7 @@ void CargoList::RemoveFromCache(const CargoPacket *cp, uint count) { assert(count <= cp->count); this->count -= count; - this->cargo_days_in_transit -= cp->days_in_transit * count; + this->cargo_days_in_transit -= static_cast(cp->days_in_transit) * count; } /** @@ -192,7 +192,7 @@ template void CargoList::AddToCache(const CargoPacket *cp) { this->count += cp->count; - this->cargo_days_in_transit += cp->days_in_transit * cp->count; + this->cargo_days_in_transit += static_cast(cp->days_in_transit) * cp->count; } /** Invalidates the cached data and rebuilds it. */