diff options
-rw-r--r-- | src/vehiclelist.cpp | 2 | ||||
-rw-r--r-- | src/vehiclelist.h | 2 |
2 files changed, 2 insertions, 2 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)); diff --git a/src/vehiclelist.h b/src/vehiclelist.h index d09f19682..03bfb0774 100644 --- a/src/vehiclelist.h +++ b/src/vehiclelist.h @@ -34,7 +34,7 @@ struct VehicleListIdentifier { CompanyID company; ///< The company associated with this list. uint32 index; ///< A vehicle list type specific index. - uint32 Pack(); + uint32 Pack() const; bool Unpack(uint32 data); /** |