summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r--src/gui/minimap.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index d35a29088..c9362471f 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -156,8 +156,8 @@ void Minimap::setMap(const Map *const map)
}
else
{
- std::string tempname = paths.getStringValue("minimaps")
- + map->getFilename() + ".png";
+ std::string tempname = paths.getStringValue("minimaps").append(
+ map->getFilename()).append(".png");
ResourceManager *const resman = ResourceManager::getInstance();
minimapName = map->getProperty("minimap");
@@ -167,7 +167,8 @@ void Minimap::setMap(const Map *const map)
if (minimapName.empty())
{
- tempname = "graphics/minimaps/" + map->getFilename() + ".png";
+ tempname = std::string("graphics/minimaps/").append(
+ map->getFilename()).append(".png");
if (resman->exists(tempname))
minimapName = tempname;
}