summaryrefslogtreecommitdiff
path: root/src/shopitem.cpp
diff options
context:
space:
mode:
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)
{