mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-30 12:43:49 +01: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:
committed by
Perttu Ahola
parent
365f7a5bfe
commit
64af6d3afe
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user