diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/buyingstoreselldialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/shopwindow.cpp | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/windows/buyingstoreselldialog.cpp b/src/gui/windows/buyingstoreselldialog.cpp index 637bdc5bd..9de82994d 100644 --- a/src/gui/windows/buyingstoreselldialog.cpp +++ b/src/gui/windows/buyingstoreselldialog.cpp @@ -56,9 +56,9 @@ void BuyingStoreSellDialog::sellAction(const ActionEvent &event A_UNUSED) Being *const being = actorManager->findBeing(mAccountId); if (!being) return; - // +++ need add colors Item *const item2 = PlayerInfo::getInventory()->findItem( - item1->getId(), ItemColor_one); + item1->getId(), + item1->getColor()); if (!item2) return; diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp index c5014f902..645ae5314 100644 --- a/src/gui/windows/shopwindow.cpp +++ b/src/gui/windows/shopwindow.cpp @@ -347,9 +347,8 @@ void ShopWindow::action(const ActionEvent &event) ShopItem *const item = *it; if (!item) continue; - // +++ need add colors Item *const cartItem = inv->findItem(item->getId(), - ItemColor_one); + item->getColor()); if (!cartItem) continue; item->setInvIndex(cartItem->getInvIndex()); @@ -748,7 +747,6 @@ void ShopWindow::giveList(const std::string &nick, const int mode) if (mode == SELL) { - // +++ need support for colors const Item *const item2 = inv->findItem(item->getId(), ItemColor_zero); if (item2) |