1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

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.
This commit is contained in:
Giuseppe Bilotta
2011-12-09 11:20:19 +01:00
committed by Perttu Ahola
parent 123529e5eb
commit 135a65e200
3 changed files with 4 additions and 1 deletions

View File

@@ -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