(svn r11002) -Codechange: unhackify the cargo packet list saving (a little).
This commit is contained in:
@@ -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_chunk_handlers[] = {
|
||||
*
|
||||
*/
|
||||
|
||||
/* static */ void CargoList::AssertOnWrongPacketOffset()
|
||||
{
|
||||
CargoList cl;
|
||||
if ((void*)&cl != (void*)cl.Packets()) NOT_REACHED();
|
||||
}
|
||||
|
||||
|
||||
CargoList::~CargoList()
|
||||
{
|
||||
while (!packets.empty()) {
|
||||
|
Reference in New Issue
Block a user