aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/tile.cpp6
-rw-r--r--src/client/tile.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/client/tile.cpp b/src/client/tile.cpp
index 91a3c0a38..a88163a50 100644
--- a/src/client/tile.cpp
+++ b/src/client/tile.cpp
@@ -2390,9 +2390,7 @@ video::ITexture *TextureSource::getShaderFlagsTexture(bool normalmap_present)
}
-const std::vector<std::string> &getTextureDirs()
+std::vector<std::string> getTextureDirs()
{
- static thread_local std::vector<std::string> dirs =
- fs::GetRecursiveDirs(g_settings->get("texture_path"));
- return dirs;
+ return fs::GetRecursiveDirs(g_settings->get("texture_path"));
}
diff --git a/src/client/tile.h b/src/client/tile.h
index 6436a93d3..c21594206 100644
--- a/src/client/tile.h
+++ b/src/client/tile.h
@@ -339,4 +339,4 @@ struct TileSpec
TileLayer layers[MAX_TILE_LAYERS];
};
-const std::vector<std::string> &getTextureDirs();
+std::vector<std::string> getTextureDirs();