diff options
Diffstat (limited to 'src/mineral.h')
-rw-r--r-- | src/mineral.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mineral.h b/src/mineral.h index 61776e669..4949fe07e 100644 --- a/src/mineral.h +++ b/src/mineral.h @@ -40,12 +40,14 @@ void init_mineral(); std::string mineral_block_texture(u8 mineral); -inline CraftItem * getDiggedMineralItem(u8 mineral) +class IGameDef; + +inline CraftItem * getDiggedMineralItem(u8 mineral, IGameDef *gamedef) { if(mineral == MINERAL_COAL) - return new CraftItem("lump_of_coal", 1); + return new CraftItem(gamedef, "lump_of_coal", 1); else if(mineral == MINERAL_IRON) - return new CraftItem("lump_of_iron", 1); + return new CraftItem(gamedef, "lump_of_iron", 1); return NULL; } |