From 0fd1ee03808ee8121e7b65e5c7c9ba19599d185e Mon Sep 17 00:00:00 2001 From: onkrot Date: Sat, 10 Jan 2015 11:05:42 +0000 Subject: Performance fixes. --- src/tile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tile.cpp') diff --git a/src/tile.cpp b/src/tile.cpp index b20aec54a..560dcddb8 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -213,7 +213,7 @@ public: // Try to use local texture instead if asked to if(prefer_local){ - std::string path = getTexturePath(name.c_str()); + std::string path = getTexturePath(name); if(path != ""){ video::IImage *img2 = driver->createImageFromFile(path.c_str()); if(img2){ @@ -245,7 +245,7 @@ public: return n->second; } video::IVideoDriver* driver = device->getVideoDriver(); - std::string path = getTexturePath(name.c_str()); + std::string path = getTexturePath(name); if(path == ""){ infostream<<"SourceImageCache::getOrLoad(): No path found for \"" <