diff options
author | peter1138 <peter1138@openttd.org> | 2008-02-12 11:46:29 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-02-12 11:46:29 +0000 |
commit | 592e22cc3a234396b8f238e1654c5cc21964e983 (patch) | |
tree | 2a3c3e2a75d3a81f1e2012c73c2effb80b431427 /src/cargopacket.cpp | |
parent | e76f7c93598707ddf304d245add5cf21cd0a81d0 (diff) | |
download | openttd-592e22cc3a234396b8f238e1654c5cc21964e983.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.cpp | 2 |
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; } |