diff options
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,15 +7,17 @@ namespace entry { class Item : public Entry { public: static std::shared_ptr<Item> create(const nlohmann::json& data); + virtual ~Item() {} protected: - Item(const nlohmann::json& data) : Entry(data) {}; + Item(const nlohmann::json& data) : Entry(data) {} }; class Substantial { public: virtual int getCost(void) const = 0; virtual double getWeight(void) const = 0; + virtual ~Substantial() {} }; std::string genText(const Substantial& s); |