summaryrefslogtreecommitdiff
path: root/src/shopitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shopitem.cpp')
-rw-r--r--src/shopitem.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shopitem.cpp b/src/shopitem.cpp
index ee55799f..683cef7a 100644
--- a/src/shopitem.cpp
+++ b/src/shopitem.cpp
@@ -23,9 +23,12 @@
#include "units.h"
-ShopItem::ShopItem (int inventoryIndex, int id,
- int quantity, int price) :
- Item (id, 0), mPrice(price)
+#include "resources/iteminfo.h"
+
+ShopItem::ShopItem(int inventoryIndex, int id,
+ int quantity, int price) :
+ Item(id, 0),
+ mPrice(price)
{
mDisplayName = getInfo().getName() +
" (" + Units::formatCurrency(mPrice).c_str() + ")";