diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-03 23:13:07 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-03 23:13:07 +0200 |
commit | 9437d4943a8b299b057020ee114b230399965abd (patch) | |
tree | 54e8d1bca3c2f5457db8402fcdfe1b9e04df54f7 /src/shopitem.cpp | |
parent | bb73cadd0afdc9fa55ea66ecedd8be53a6f3198e (diff) | |
download | manaverse-9437d4943a8b299b057020ee114b230399965abd.tar.gz manaverse-9437d4943a8b299b057020ee114b230399965abd.tar.bz2 manaverse-9437d4943a8b299b057020ee114b230399965abd.tar.xz manaverse-9437d4943a8b299b057020ee114b230399965abd.zip |
Add colors to buy/sell dialogs.
Diffstat (limited to 'src/shopitem.cpp')
-rw-r--r-- | src/shopitem.cpp | 8 |
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) { |