diff options
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r-- | src/gui/minimap.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index ef86dfd4..2088f070 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -77,12 +77,9 @@ Minimap::~Minimap() void Minimap::setMap(Map *map) { // Set the title for the Minimap - std::string caption = ""; + std::string caption = map ? map->getName() : ""; std::string minimapName; - if (map) - caption = map->getName(); - if (caption.empty()) caption = _("Map"); |