From: Perttu Ahola Date: Fri, 28 Jan 2011 22:53:30 +0000 (+0200) Subject: Fixed MBOItem inventory images X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=a4179abb1b090b0b95ed4876cddc9975040d81b1;p=zefram%2Fminetest%2Fminetest_engine.git Fixed MBOItem inventory images --- 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; }