Skip to content
Snippets Groups Projects
Commit 64af6d3a authored by Giuseppe Bilotta's avatar Giuseppe Bilotta Committed by Perttu Ahola
Browse files

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
parent 365f7a5b
Branches
Tags
No related merge requests found
......@@ -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
......
......@@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class Map;
class IGameDef;
class CollisionInfo;
struct CollisionInfo;
class Player
{
......
......@@ -30,7 +30,7 @@ class ServerActiveObject;
class ServerRemotePlayer;
typedef struct lua_State lua_State;
struct LuaEntityProperties;
class ItemStack;
struct ItemStack;
struct PointedThing;
//class IGameDef;
......
......@@ -42,7 +42,7 @@ Some planning
*/
class ServerEnvironment;
class ItemStack;
struct ItemStack;
class Player;
struct ToolDiggingProperties;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment