From 9437d4943a8b299b057020ee114b230399965abd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 3 Mar 2011 23:13:07 +0200 Subject: Add colors to buy/sell dialogs. --- src/gui/sell.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/sell.cpp') diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index 5b05c6865..de1da395c 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -152,14 +152,14 @@ void SellDialog::addItem(const Item *item, int price) return; mShopItems->addItem2(item->getInvIndex(), item->getId(), - item->getQuantity(), price); + item->getColor(), item->getQuantity(), price); mShopItemList->adjustSize(); } -void SellDialog::addItem(int id, int amount, int price) +void SellDialog::addItem(int id, unsigned char color, int amount, int price) { - mShopItems->addItem(id, amount, price); + mShopItems->addItem(id, color, amount, price); mShopItemList->adjustSize(); } -- cgit v1.2.3-70-g09d2