summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index ba8cf4580..079be8793 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -80,10 +80,12 @@ InventoryItem* InventoryItem::deSerialize(std::istream &is)
video::ITexture * MapBlockObjectItem::getImage()
{
if(m_inventorystring.substr(0,3) == "Rat")
- return g_device->getVideoDriver()->getTexture("../data/rat.png");
+ //return g_device->getVideoDriver()->getTexture("../data/rat.png");
+ return g_irrlicht->getTexture("../data/rat.png");
if(m_inventorystring.substr(0,4) == "Sign")
- return g_device->getVideoDriver()->getTexture("../data/sign.png");
+ //return g_device->getVideoDriver()->getTexture("../data/sign.png");
+ return g_irrlicht->getTexture("../data/sign.png");
return NULL;
}