diff options
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]; } |