equal
deleted
inserted
replaced
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[] = { |