summaryrefslogtreecommitdiff
path: root/src/shopitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shopitem.h')
-rw-r--r--src/shopitem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shopitem.h b/src/shopitem.h
index 74521789..996e04ec 100644
--- a/src/shopitem.h
+++ b/src/shopitem.h
@@ -52,7 +52,7 @@ class ShopItem : public Item
*/
ShopItem(int id, int price);
- ~ShopItem();
+ ~ShopItem() override;
/**
* Add a duplicate. Id and price will be taken from this item.
@@ -126,10 +126,10 @@ class ShopItem : public Item
/**
* Struct to keep track of duplicates.
*/
- typedef struct {
+ using DuplicateItem = struct {
int inventoryIndex;
int quantity;
- } DuplicateItem;
+ };
std::stack<DuplicateItem*> mDuplicates; /** <-- Stores duplicates */
};