forked from rosebudai/OpenRCT2-Web
Make ShopItemDescriptor::HasFlag take const
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user