summaryrefslogtreecommitdiff
path: root/src/cargopacket.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-02-12 11:46:29 +0000
committerpeter1138 <peter1138@openttd.org>2008-02-12 11:46:29 +0000
commitaefb78fcdf0afdfd256781adb29e1f063422d00d (patch)
tree2a3c3e2a75d3a81f1e2012c73c2effb80b431427 /src/cargopacket.cpp
parent57aacb50c87372dabddd2ab58537ef55ba9e3c3d (diff)
downloadopenttd-aefb78fcdf0afdfd256781adb29e1f063422d00d.tar.xz
(svn r12120) -Cleanup: const-ify parameters when checking for same cargopacket source.
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r--src/cargopacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp
index a09a978a1..e97ff866c 100644
--- a/src/cargopacket.cpp
+++ b/src/cargopacket.cpp
@@ -37,7 +37,7 @@ CargoPacket::~CargoPacket()
this->count = 0;
}
-bool CargoPacket::SameSource(CargoPacket *cp)
+bool CargoPacket::SameSource(const CargoPacket *cp) const
{
return this->source_xy == cp->source_xy && this->days_in_transit == cp->days_in_transit && this->paid_for == cp->paid_for;
}