From 49bbc0f8544dce4b09adb5a54a816372e40e367c Mon Sep 17 00:00:00 2001 From: ZehMatt Date: Mon, 2 Aug 2021 07:24:39 +0300 Subject: [PATCH] Turn ride_id_t into a strong type --- src/openrct2/ride/RideTypes.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/RideTypes.h b/src/openrct2/ride/RideTypes.h index 2a1567ad4b..7d8b11b344 100644 --- a/src/openrct2/ride/RideTypes.h +++ b/src/openrct2/ride/RideTypes.h @@ -13,11 +13,12 @@ #include #include +#include -using ride_id_t = uint16_t; +enum class ride_id_t : uint16_t; struct Ride; -constexpr const ride_id_t RIDE_ID_NULL = std::numeric_limits::max(); +constexpr const ride_id_t RIDE_ID_NULL = static_cast(std::numeric_limits>::max()); /** * Couples a ride type and subtype together.