summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-09 20:06:14 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-09 20:06:14 +0300
commit46fe5111cb099c4df5d1494f05c1b5e482e895de (patch)
treecad5863381859ab7616d3c4121868ecd1cd74405 /src/inventory.cpp
parent3f62c34d3e19c2da8885facfedea2ed613779c53 (diff)
downloadplus-46fe5111cb099c4df5d1494f05c1b5e482e895de.tar.gz
plus-46fe5111cb099c4df5d1494f05c1b5e482e895de.tar.bz2
plus-46fe5111cb099c4df5d1494f05c1b5e482e895de.tar.xz
plus-46fe5111cb099c4df5d1494f05c1b5e482e895de.zip
Allow select item with any color in code where colors not supported.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 5e600192b..894377884 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -79,7 +79,7 @@ Item *Inventory::findItem(int itemId, unsigned char color) const
for (unsigned i = 0; i < mSize; i++)
{
if (mItems[i] && mItems[i]->getId() == itemId
- && mItems[i]->getColor() == color)
+ && (color == 0 || mItems[i]->getColor() == color))
{
return mItems[i];
}