summaryrefslogtreecommitdiff
path: root/src/resources/inventory/complexinventory.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-20 21:20:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-20 21:20:20 +0300
commit8fb2c062cd1c03f032b99f4a7e7663c0653ba837 (patch)
tree0bb3cd9a01f0158822ae58a0d56b8b1808cb9bbc /src/resources/inventory/complexinventory.cpp
parenta9f6959a96395edc64ff57bf5ba1d75cca8e86c3 (diff)
downloadmanaverse-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.tar.gz
manaverse-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.tar.bz2
manaverse-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.tar.xz
manaverse-8fb2c062cd1c03f032b99f4a7e7663c0653ba837.zip
Add missing const in resources directory.
Diffstat (limited to 'src/resources/inventory/complexinventory.cpp')
-rw-r--r--src/resources/inventory/complexinventory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/inventory/complexinventory.cpp b/src/resources/inventory/complexinventory.cpp
index 5264406cb..60f6092e6 100644
--- a/src/resources/inventory/complexinventory.cpp
+++ b/src/resources/inventory/complexinventory.cpp
@@ -52,7 +52,7 @@ bool ComplexInventory::addVirtualItem(const Item *const item,
ComplexItem *citem = nullptr;
if (mItems[index] != nullptr)
{
- Item *const item2 = mItems[index];
+ const Item *const item2 = mItems[index];
if (item->getId() != item2->getId() ||
item->getColor() != item2->getColor())
{ // not same id or color
@@ -132,7 +132,7 @@ void ComplexInventory::setItem(const int index,
return;
}
- Item *const item1 = mItems[index];
+ const Item *const item1 = mItems[index];
if (!item1 && id > 0)
{
ComplexItem *const item = new ComplexItem(id,