File diff r11916:e3a8d08bf479 → r11917:612c11f7ab47
src/cargopacket.h
Show inline comments
 
@@ -63,7 +63,7 @@ struct CargoPacket : PoolItem<CargoPacke
 
 * @param cp    the variable used as "iterator"
 
 * @param start the cargo packet ID of the first packet to iterate over
 
 */
 
#define FOR_ALL_CARGOPACKETS_FROM(cp, start) for (cp = GetCargoPacket(start); cp != NULL; cp = (cp->index + 1U < GetCargoPacketPoolSize()) ? GetCargoPacket(cp->index + 1U) : NULL) if (cp->IsValid())
 
#define FOR_ALL_CARGOPACKETS_FROM(cp, start) for (cp = CargoPacket::Get(start); cp != NULL; cp = (cp->index + 1U < GetCargoPacketPoolSize()) ? CargoPacket::Get(cp->index + 1U) : NULL) if (cp->IsValid())
 

	
 
/**
 
 * Iterate over all _valid_ cargo packets from the begin of the pool