File diff r7490:4e86e893fa7f → r7491:f38588e171ec
src/cargopacket.cpp
Show inline comments
 
@@ -16,9 +16,6 @@ void InitializeCargoPackets()
 
	/* Clean the cargo packet pool and create 1 block in it */
 
	_CargoPacket_pool.CleanPool();
 
	_CargoPacket_pool.AddBlockToPool();
 

	
 
	/* Check whether our &cargolist == &cargolist.packets "hack" works */
 
	CargoList::AssertOnWrongPacketOffset();
 
}
 

	
 
CargoPacket::CargoPacket(StationID source, uint16 count)
 
@@ -87,13 +84,6 @@ extern const ChunkHandler _cargopacket_c
 
 *
 
 */
 

	
 
/* static */ void CargoList::AssertOnWrongPacketOffset()
 
{
 
	CargoList cl;
 
	if ((void*)&cl != (void*)cl.Packets()) NOT_REACHED();
 
}
 

	
 

	
 
CargoList::~CargoList()
 
{
 
	while (!packets.empty()) {