From 6145a135bd71425c69d31e6c65112238e08349a5 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 4 Dec 2011 02:12:45 +0200 Subject: Make ToolItem and MaterialItem to convert names by aliases at creation time too (necessary for eg. crafting) --- src/inventory.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/inventory.h') diff --git a/src/inventory.h b/src/inventory.h index 57af37650..c16b9a310 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -331,12 +331,7 @@ private: class ToolItem : public InventoryItem { public: - ToolItem(IGameDef *gamedef, std::string toolname, u16 wear): - InventoryItem(gamedef, 1) - { - m_toolname = toolname; - m_wear = wear; - } + ToolItem(IGameDef *gamedef, std::string toolname, u16 wear); /* Implementation interface */ -- cgit v1.2.3