diff options
author | onkrot <vob999@bk.ru> | 2015-01-10 11:05:42 +0000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-01-13 23:48:56 +1000 |
commit | 0fd1ee03808ee8121e7b65e5c7c9ba19599d185e (patch) | |
tree | 6ce75f294a94cfdcb3dfaa45ef8f7510ca893074 /src/tile.cpp | |
parent | 5d08ada2241569501fa22bfc5e5cde0ee7dfd0c7 (diff) | |
download | minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.tar.gz minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.tar.bz2 minetest-0fd1ee03808ee8121e7b65e5c7c9ba19599d185e.zip |
Performance fixes.
Diffstat (limited to 'src/tile.cpp')
-rw-r--r-- | src/tile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 \"" <<name<<"\""<<std::endl; |