src/cargopacket.cpp
branchNewGRF_ports
changeset 6878 7d1ff2f621c7
parent 6868 7eb395287b3d
child 10184 fcf5fb2548eb
equal deleted inserted replaced
6877:889301acc299 6878:7d1ff2f621c7
    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[] = {