diff options
Diffstat (limited to 'src/vehiclelist.h')
-rw-r--r-- | src/vehiclelist.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vehiclelist.h b/src/vehiclelist.h index 6cb2588ea..6f6e5cb5f 100644 --- a/src/vehiclelist.h +++ b/src/vehiclelist.h @@ -16,7 +16,7 @@ #include "tile_type.h" /** Vehicle List type flags */ -enum VehicleListType { +enum VehicleListType : byte { VL_STANDARD, VL_SHARED_ORDERS, VL_STATION_LIST, @@ -36,6 +36,8 @@ struct VehicleListIdentifier { bool UnpackIfValid(uint32 data); static VehicleListIdentifier UnPack(uint32 data); + bool Valid() const { return this->type < VLT_END; } + /** * Create a simple vehicle list. * @param type List type. |