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

View File

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

View File

@ -30,7 +30,7 @@ class ServerActiveObject;
class ServerRemotePlayer;
typedef struct lua_State lua_State;
struct LuaEntityProperties;
class ItemStack;
struct ItemStack;
struct PointedThing;
//class IGameDef;

View File

@ -42,7 +42,7 @@ Some planning
*/
class ServerEnvironment;
class ItemStack;
struct ItemStack;
class Player;
struct ToolDiggingProperties;