mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Make ShopItemDescriptor::HasFlag take const
This commit is contained in:
@@ -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