diff options
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r-- | src/cargopacket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp index b316b0297..dca6103e2 100644 --- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -21,9 +21,9 @@ static void CargoPacketPoolNewBlock(uint cpart_item) for (CargoPacket *cp = GetCargoPacket(cpart_item); cp != NULL; cp = (cp->index + 1U < GetCargoPacketPoolSize()) ? GetCargoPacket(cp->index + 1U) : NULL) cp->index = cpart_item++; } -static void CargoPacketPoolCleanBlock(uint cpart_item, uint end_item) +static void CargoPacketPoolCleanBlock(uint start_item, uint end_item) { - for (uint i = cpart_item; i <= end_item; i++) { + for (uint i = start_item; i <= end_item; i++) { CargoPacket *cp = GetCargoPacket(i); if (cp->IsValid()) cp->~CargoPacket(); } |