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/shopitem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/shopitem.cpp') diff --git a/src/shopitem.cpp b/src/shopitem.cpp index 5fce6685d..861d03bdc 100644 --- a/src/shopitem.cpp +++ b/src/shopitem.cpp @@ -28,9 +28,9 @@ #include "resources/iteminfo.h" -ShopItem::ShopItem(int inventoryIndex, int id, +ShopItem::ShopItem(int inventoryIndex, int id, unsigned char color, int quantity, int price) : - Item(id, 0), + Item(id, 0, 0, color), mPrice(price), mShowQuantity(true) { @@ -43,8 +43,8 @@ ShopItem::ShopItem(int inventoryIndex, int id, addDuplicate(inventoryIndex, quantity); } -ShopItem::ShopItem (int id, int price) : - Item (id, 0), +ShopItem::ShopItem (int id, unsigned char color, int price) : + Item (id, 0, 0, color), mPrice(price), mShowQuantity(false) { -- cgit v1.2.3-60-g2f50