Make ShopItemDescriptor::HasFlag take const

This commit is contained in:
Gymnasiast committed 2020-05-11 19:21:25 +02:00
1 parent 15b5d97795
commit af1180a484
2 files changed
+2 -2

No files matched your search

+1 -1
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;
}
+1 -1
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;