summaryrefslogtreecommitdiff
path: root/src/shopitem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-03 23:13:07 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-03 23:13:07 +0200
commit9437d4943a8b299b057020ee114b230399965abd (patch)
tree54e8d1bca3c2f5457db8402fcdfe1b9e04df54f7 /src/shopitem.cpp
parentbb73cadd0afdc9fa55ea66ecedd8be53a6f3198e (diff)
downloadplus-9437d4943a8b299b057020ee114b230399965abd.tar.gz
plus-9437d4943a8b299b057020ee114b230399965abd.tar.bz2
plus-9437d4943a8b299b057020ee114b230399965abd.tar.xz
plus-9437d4943a8b299b057020ee114b230399965abd.zip
Add colors to buy/sell dialogs.
Diffstat (limited to 'src/shopitem.cpp')
-rw-r--r--src/shopitem.cpp8
1 files changed, 4 insertions, 4 deletions
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)
{