changeset 7374:534777ca867d draft

(svn r10743) -Fix: some typos introduces by copy-pasting.
author rubidium <rubidium@openttd.org>
date Wed, 01 Aug 2007 19:13:42 +0000
parents 09c02f8d4ece
children d9b33b58878c
files src/cargopacket.cpp src/cargopacket.h
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/cargopacket.cpp
+++ b/src/cargopacket.cpp
@@ -21,9 +21,9 @@
 	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();
 	}
--- a/src/cargopacket.h
+++ b/src/cargopacket.h
@@ -51,12 +51,12 @@
 	bool SameSource(CargoPacket *cp);
 
 
-	/* normal new/delete operators. Used when building/removing station */
-	void* operator new (size_t size);
+	/* normal new/delete operators. Used when building/removing cargo packet */
+	void *operator new (size_t size);
 	void operator delete(void *p);
 
-	/* new/delete operators accepting station index. Used when loading station from savegame. */
-	void* operator new (size_t size, CargoPacket::ID cp_idx);
+	/* new/delete operators accepting cargo packet index. Used when loading cargo packets from savegame. */
+	void *operator new (size_t size, CargoPacket::ID cp_idx);
 	void operator delete(void *p, CargoPacket::ID cp_idx);
 
 private: