File diff r7373:bb901f42395a → r7374:9c282dd3d4c9
src/cargopacket.h
Show inline comments
 
@@ -48,18 +48,18 @@ struct CargoPacket {
 
	 * @param cp the cargo packet to compare to
 
	 * @return true if and only if days_in_transit and source_xy are equal
 
	 */
 
	bool SameSource(CargoPacket *cp);
 

	
 

	
 
	/* normal new/delete operators. Used when building/removing station */
 
	void* operator new (size_t size);
 
	/* normal new/delete operators. Used when building/removing cargo packet */
 
	void *operator new (size_t size);
 
	void operator delete(void *p);
 

	
 
	/* new/delete operators accepting station index. Used when loading station from savegame. */
 
	void* operator new (size_t size, CargoPacket::ID cp_idx);
 
	/* new/delete operators accepting cargo packet index. Used when loading cargo packets from savegame. */
 
	void *operator new (size_t size, CargoPacket::ID cp_idx);
 
	void operator delete(void *p, CargoPacket::ID cp_idx);
 

	
 
private:
 
	/**
 
	 * Allocate the raw memory for this cargo packet
 
	 * @return the allocated memory