summaryrefslogtreecommitdiff
path: root/src/gui/windows/minimap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r--src/gui/windows/minimap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp
index 7f48f4a10..cf46bb6c6 100644
--- a/src/gui/windows/minimap.cpp
+++ b/src/gui/windows/minimap.cpp
@@ -181,7 +181,8 @@ void Minimap::setMap(const Map *const map)
std::string tempname = pathJoin(paths.getStringValue("minimaps"),
map->getFilename()).append(".png");
- std::string minimapName = map->getProperty("minimap");
+ std::string minimapName = map->getProperty("minimap",
+ std::string());
if (minimapName.empty() && VirtFs::exists(tempname))
minimapName = tempname;