From af1180a4842742f41ec00cf99a51f5f57b7d620c Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 11 May 2020 19:21:25 +0200 Subject: [PATCH] Make ShopItemDescriptor::HasFlag take const --- src/openrct2/ride/ShopItem.cpp | 2 +- src/openrct2/ride/ShopItem.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/ShopItem.cpp b/src/openrct2/ride/ShopItem.cpp index b54f67f12c..a438ad22e3 100644 --- a/src/openrct2/ride/ShopItem.cpp +++ b/src/openrct2/ride/ShopItem.cpp @@ -110,7 +110,7 @@ bool shop_item_has_common_price(int32_t shopItem) return (gSamePriceThroughoutPark & (1ULL << shopItem)) != 0; } -bool ShopItemDescriptor::HasFlag(uint16_t flag) const +bool ShopItemDescriptor::HasFlag(const uint16_t flag) const { return (Flags & flag) != 0; } diff --git a/src/openrct2/ride/ShopItem.h b/src/openrct2/ride/ShopItem.h index e2758ac7fc..c9b352d291 100644 --- a/src/openrct2/ride/ShopItem.h +++ b/src/openrct2/ride/ShopItem.h @@ -90,7 +90,7 @@ struct ShopItemDescriptor ShopItemStrings Naming; uint16_t Flags; - bool HasFlag(uint16_t flag) const; + bool HasFlag(const uint16_t flag) const; bool IsFood() const; bool IsDrink() const; bool IsFoodOrDrink() const;