summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inventory.h b/src/inventory.h
index cc6393d43..1fab9d027 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -86,7 +86,8 @@ public:
}
video::ITexture * getImage()
{
- return g_materials[m_material].getTexture(0);
+ u16 tile = content_tile(m_material, v3s16(1,0,0));
+ return g_tile_materials[tile].getTexture(0);
}
std::string getText()
{