diff options
Diffstat (limited to 'src/road_type.h')
-rw-r--r-- | src/road_type.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/road_type.h b/src/road_type.h index be16c2315..7a3a2f9ae 100644 --- a/src/road_type.h +++ b/src/road_type.h @@ -27,7 +27,7 @@ enum RoadType { INVALID_ROADTYPE = 0xFF ///< flag for invalid roadtype }; DECLARE_POSTFIX_INCREMENT(RoadType) -template <> struct EnumPropsT<RoadType> : MakeEnumPropsT<RoadType, byte, ROADTYPE_BEGIN, ROADTYPE_END, INVALID_ROADTYPE> {}; +template <> struct EnumPropsT<RoadType> : MakeEnumPropsT<RoadType, byte, ROADTYPE_BEGIN, ROADTYPE_END, INVALID_ROADTYPE, 2> {}; /** * The different roadtypes we support, but then a bitmask of them @@ -42,6 +42,7 @@ enum RoadTypes { INVALID_ROADTYPES = 0xFF ///< Invalid roadtypes }; DECLARE_ENUM_AS_BIT_SET(RoadTypes) +template <> struct EnumPropsT<RoadTypes> : MakeEnumPropsT<RoadTypes, byte, ROADTYPES_NONE, ROADTYPES_END, INVALID_ROADTYPES, 2> {}; typedef SimpleTinyEnumT<RoadTypes, byte> RoadTypesByte; |