summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 07d28b164..026774138 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -295,7 +295,7 @@ void Map::initializeAmbientLayers()
for (int i = 0; hasProperty(std::string("background").append(
toString(i)).append("image")); i ++)
{
- const std::string name = "background" + toString(i);
+ const std::string name("background" + toString(i));
Image *const img = resman->getImage(getProperty(name + "image"));
if (img)