summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-25 13:48:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-25 13:48:24 +0300
commit6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (patch)
treedf4a3e32b8ad9e77d894280966a0066f4aef0a94 /src/map.cpp
parent9a970ba6bc80938b56f3ba731bf4614b40ba573d (diff)
downloadmanaplus-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.gz
manaplus-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.bz2
manaplus-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.xz
manaplus-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.zip
improve a bit strings declaration.
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)