diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-12-09 11:20:19 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-28 20:50:21 +0200 |
commit | 135a65e200d372dd31f19639d25c9b5aa1459252 (patch) | |
tree | a34dc712a24034caa297aff222f6fc3373d50875 /src/inventory.h | |
parent | 123529e5eb99cc8e8dcf198e9724c98c44eb96ea (diff) | |
download | minetest-135a65e200d372dd31f19639d25c9b5aa1459252.tar.gz minetest-135a65e200d372dd31f19639d25c9b5aa1459252.tar.bz2 minetest-135a65e200d372dd31f19639d25c9b5aa1459252.zip |
Add virtual destructors to abstract classes
IRespawnInitiator and InventoryActions are abstract classes, but they
were missing a virtual destructor. Define it, even if it does nothing
and its absence most likely makes no difference other tha causing
warnings during compile.
Diffstat (limited to 'src/inventory.h')
-rw-r--r-- | src/inventory.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inventory.h b/src/inventory.h index c16b9a310..795d32d3e 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -554,11 +554,12 @@ public: struct InventoryAction { static InventoryAction * deSerialize(std::istream &is); - + virtual u16 getType() const = 0; virtual void serialize(std::ostream &os) const = 0; virtual void apply(InventoryContext *c, InventoryManager *mgr, ServerEnvironment *env) = 0; + virtual ~InventoryAction() {}; }; struct IMoveAction : public InventoryAction |