diff options
| author | Perttu Ahola <celeron55@gmail.com> | 2011-12-04 02:12:45 +0200 |
|---|---|---|
| committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-04 02:12:45 +0200 |
| commit | 6145a135bd71425c69d31e6c65112238e08349a5 (patch) | |
| tree | dc1b839ebd4b35cb84a14b95d339843c11e75bf1 /src/inventory.h | |
| parent | 97c3bc408be0636b5821b7792957d18272e8f7bb (diff) | |
| download | dragonfireclient-6145a135bd71425c69d31e6c65112238e08349a5.tar.xz | |
Make ToolItem and MaterialItem to convert names by aliases at creation time too (necessary for eg. crafting)
Diffstat (limited to 'src/inventory.h')
| -rw-r--r-- | src/inventory.h | 7 |
1 files changed, 1 insertions, 6 deletions
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 */ |
