diff options
Diffstat (limited to 'src/Item.cpp')
-rw-r--r-- | src/Item.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Item.cpp b/src/Item.cpp index dd8f08f02..f1177c84a 100644 --- a/src/Item.cpp +++ b/src/Item.cpp @@ -772,7 +772,7 @@ void cItems::Set(int a_Idx, short a_ItemType, char a_ItemCount, short a_ItemDama bool cItems::Contains(const cItem & a_Item) { - for (auto itr : *this) + for (const auto & itr : *this) { if (a_Item.IsEqual(itr)) { @@ -788,7 +788,7 @@ bool cItems::Contains(const cItem & a_Item) bool cItems::ContainsType(const cItem & a_Item) { - for (auto itr : *this) + for (const auto & itr : *this) { if (a_Item.IsSameType(itr)) { |