diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-09 20:06:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-09 20:06:14 +0300 |
commit | 46fe5111cb099c4df5d1494f05c1b5e482e895de (patch) | |
tree | cad5863381859ab7616d3c4121868ecd1cd74405 /src/inventory.cpp | |
parent | 3f62c34d3e19c2da8885facfedea2ed613779c53 (diff) | |
download | manaverse-46fe5111cb099c4df5d1494f05c1b5e482e895de.tar.gz manaverse-46fe5111cb099c4df5d1494f05c1b5e482e895de.tar.bz2 manaverse-46fe5111cb099c4df5d1494f05c1b5e482e895de.tar.xz manaverse-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.cpp | 2 |
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]; } |