mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-23 19:20:56 +00:00
Avoid possible data race during access to the static local variable
This commit is contained in:
parent
7c46102f0c
commit
7c53b99d31
@ -353,11 +353,11 @@ namespace ESMTerrain
|
||||
std::string Storage::getTextureName(UniqueTextureId id)
|
||||
{
|
||||
// Goes under used terrain blend transitions
|
||||
static const std::string baseTexture = "textures\\tx_black_01.dds";
|
||||
static constexpr char baseTexture[] = "textures\\tx_black_01.dds";
|
||||
if (id.first == -1)
|
||||
return baseTexture;
|
||||
|
||||
static const std::string defaultTexture = "textures\\_land_default.dds";
|
||||
static constexpr char defaultTexture[] = "textures\\_land_default.dds";
|
||||
if (id.first == 0)
|
||||
return defaultTexture; // Not sure if the default texture really is hardcoded?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user