From f0df14bb0fc45c94fa4b84e5a3ac083420777316 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Thu, 2 May 2019 17:50:04 +0100 Subject: [PATCH] Use BannerIndex type --- src/openrct2/actions/BannerPlaceAction.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/actions/BannerPlaceAction.hpp b/src/openrct2/actions/BannerPlaceAction.hpp index 4aa2317ee6..25354dc617 100644 --- a/src/openrct2/actions/BannerPlaceAction.hpp +++ b/src/openrct2/actions/BannerPlaceAction.hpp @@ -20,12 +20,12 @@ DEFINE_GAME_ACTION(BannerPlaceAction, GAME_COMMAND_PLACE_BANNER, GameActionResul private: CoordsXYZD _loc; uint8_t _bannerType{ std::numeric_limits::max() }; - uint8_t _bannerIndex{ BANNER_INDEX_NULL }; + BannerIndex _bannerIndex{ BANNER_INDEX_NULL }; uint8_t _primaryColour; public: BannerPlaceAction() = default; - BannerPlaceAction(CoordsXYZD loc, uint8_t bannerType, uint8_t bannerIndex, uint8_t primaryColour) + BannerPlaceAction(CoordsXYZD loc, uint8_t bannerType, BannerIndex bannerIndex, uint8_t primaryColour) : _loc(loc) , _bannerType(bannerType) , _bannerIndex(bannerIndex)