From a4179abb1b090b0b95ed4876cddc9975040d81b1 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 29 Jan 2011 00:53:30 +0200 Subject: [PATCH] Fixed MBOItem inventory images --- src/inventory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inventory.cpp b/src/inventory.cpp index cbe66edb..deaecae2 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -98,11 +98,11 @@ video::ITexture * MapBlockObjectItem::getImage() { if(m_inventorystring.substr(0,3) == "Rat") //return g_device->getVideoDriver()->getTexture(porting::getDataPath("rat.png").c_str()); - return g_irrlicht->getTexture(porting::getDataPath("rat.png").c_str()); + return g_irrlicht->getTexture("rat.png"); if(m_inventorystring.substr(0,4) == "Sign") //return g_device->getVideoDriver()->getTexture(porting::getDataPath("sign.png").c_str()); - return g_irrlicht->getTexture(porting::getDataPath("sign.png").c_str()); + return g_irrlicht->getTexture("sign.png"); return NULL; } -- 2.30.2