summaryrefslogtreecommitdiff
path: root/src/shopitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shopitem.cpp')
-rw-r--r--src/shopitem.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shopitem.cpp b/src/shopitem.cpp
index 2b9923eb7..3fa7c6480 100644
--- a/src/shopitem.cpp
+++ b/src/shopitem.cpp
@@ -47,7 +47,8 @@ ShopItem::ShopItem(const int inventoryIndex,
mDisplayName(),
mDuplicates(),
mPrice(price),
- mShowQuantity(true)
+ mShowQuantity(true),
+ mVisible(true)
{
updateDisplayName(quantity);
setInvIndex(inventoryIndex);
@@ -67,7 +68,8 @@ ShopItem::ShopItem(const int id,
mDisplayName(),
mDuplicates(),
mPrice(price),
- mShowQuantity(false)
+ mShowQuantity(false),
+ mVisible(true)
{
updateDisplayName(0);
setInvIndex(-1);