From 46fe5111cb099c4df5d1494f05c1b5e482e895de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 9 Jun 2011 20:06:14 +0300 Subject: Allow select item with any color in code where colors not supported. --- src/inventory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inventory.cpp') 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]; } -- cgit v1.2.3-70-g09d2