diff --git a/source/graphics/MapWriter.cpp b/source/graphics/MapWriter.cpp index 7fb7d1bef5..50d56237f6 100755 --- a/source/graphics/MapWriter.cpp +++ b/source/graphics/MapWriter.cpp @@ -102,7 +102,7 @@ void CMapWriter::EnumTerrainTextures(std::vector& textures, // uh-oh, this shouldn't happen; set texturename to empty string texturename=""; } else { - texturename=texentry->m_Name; + texturename=texentry->GetName(); } textures.push_back(texturename); }