1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Fix some warnings on some compilers

ItemStack is a struct, not a class
CollisionInfo is a struct, not a class
InventoryAction is abstract and it needs a virtual destructor
This commit is contained in:
Giuseppe Bilotta 2012-01-23 20:23:56 +01:00 committed by Perttu Ahola
parent 365f7a5bfe
commit 64af6d3afe
4 changed files with 4 additions and 3 deletions

View file

@ -103,6 +103,7 @@ struct InventoryAction
virtual void apply(InventoryManager *mgr, ServerActiveObject *player,
IGameDef *gamedef) = 0;
virtual void clientApply(InventoryManager *mgr, IGameDef *gamedef) = 0;
virtual ~InventoryAction() {};
};
struct IMoveAction : public InventoryAction