1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 09:25:37 +02: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