diff options
author | rubidium <rubidium@openttd.org> | 2007-08-01 19:13:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-01 19:13:42 +0000 |
commit | cbd3aca30cb938081ae5a6dd498633e85665f591 (patch) | |
tree | 12aaebec305a748f0307963fc177986a544dd092 /src/cargopacket.cpp | |
parent | 415f765006c2290e4f79f09ee6860d66c84b3749 (diff) | |
download | openttd-cbd3aca30cb938081ae5a6dd498633e85665f591.tar.xz |
(svn r10743) -Fix: some typos introduces by copy-pasting.
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(); } |