Fixed MBOItem inventory images
authorPerttu Ahola <celeron55@gmail.com>
Fri, 28 Jan 2011 22:53:30 +0000 (00:53 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Fri, 28 Jan 2011 22:53:30 +0000 (00:53 +0200)
src/inventory.cpp

index cbe66edb00b623c255891c6e7f85983aa0e07e94..deaecae26823e385b1ec06e7a56e13c6889eb2b3 100644 (file)
@@ -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;
 }