From 20d2a17c8c0fa9220c257d61641a6459e154de26 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 1 Feb 2010 17:16:57 -0700 Subject: Attempt to fix Minimap caption again... --- src/gui/minimap.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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"); -- cgit v1.2.3-70-g09d2