1
0
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:
Gymnasiast
2020-05-11 19:21:25 +02:00
parent 15b5d97795
commit af1180a484
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;