src/cargopacket.cpp
branchnoai
changeset 9732 f8eb3e208514
parent 9701 d1ac22c62f64
child 9837 c9ec4f82e0d0
equal deleted inserted replaced
9731:9b1552d0fd9b 9732:f8eb3e208514
    35 CargoPacket::~CargoPacket()
    35 CargoPacket::~CargoPacket()
    36 {
    36 {
    37 	this->count = 0;
    37 	this->count = 0;
    38 }
    38 }
    39 
    39 
    40 bool CargoPacket::SameSource(CargoPacket *cp)
    40 bool CargoPacket::SameSource(const CargoPacket *cp) const
    41 {
    41 {
    42 	return this->source_xy == cp->source_xy && this->days_in_transit == cp->days_in_transit && this->paid_for == cp->paid_for;
    42 	return this->source_xy == cp->source_xy && this->days_in_transit == cp->days_in_transit && this->paid_for == cp->paid_for;
    43 }
    43 }
    44 
    44 
    45 static const SaveLoad _cargopacket_desc[] = {
    45 static const SaveLoad _cargopacket_desc[] = {