summaryrefslogtreecommitdiff
path: root/src/vehiclelist.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-07-08 20:07:21 +0000
committerfrosch <frosch@openttd.org>2014-07-08 20:07:21 +0000
commitda9de1de70a83c4f1737f70542214ef39c5df6b7 (patch)
tree14bf08173a103e9ce6670b07ab3ce5c07d8100c1 /src/vehiclelist.cpp
parentc3c966fd79b07020436849466706fc50e0306a3d (diff)
downloadopenttd-da9de1de70a83c4f1737f70542214ef39c5df6b7.tar.xz
(svn r26679) -Codechange: VehicleListIdentifier::Pack can be const. (Juanjo)
Diffstat (limited to 'src/vehiclelist.cpp')
-rw-r--r--src/vehiclelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehiclelist.cpp b/src/vehiclelist.cpp
index 93dec488d..7e42b25aa 100644
--- a/src/vehiclelist.cpp
+++ b/src/vehiclelist.cpp
@@ -20,7 +20,7 @@
* Pack a VehicleListIdentifier in a single uint32.
* @return The packed identifier.
*/
-uint32 VehicleListIdentifier::Pack()
+uint32 VehicleListIdentifier::Pack() const
{
byte c = this->company == OWNER_NONE ? 0xF : (byte)this->company;
assert(c < (1 << 4));