summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-01-05 09:54:52 -0700
committerJared Adams <jaxad0127@gmail.com>2010-01-05 09:54:52 -0700
commit4424ca5b9dea2a9824b83f3ab691b8c575a35267 (patch)
treed72a7f8c199bcd81d7dee57c0ddd0cef8f982552 /src/gui
parentc04eb3d86666aa96f36ccac03f29ad46c18529c3 (diff)
downloadmana-client-4424ca5b9dea2a9824b83f3ab691b8c575a35267.tar.gz
mana-client-4424ca5b9dea2a9824b83f3ab691b8c575a35267.tar.bz2
mana-client-4424ca5b9dea2a9824b83f3ab691b8c575a35267.tar.xz
mana-client-4424ca5b9dea2a9824b83f3ab691b8c575a35267.zip
Fix a crash when maps don't have names
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/minimap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index 40526a22..b8f8ef57 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -77,7 +77,7 @@ Minimap::~Minimap()
void Minimap::setMap(Map *map)
{
// Set the title for the Minimap
- std::string caption;
+ std::string caption = "";
if (map)
caption = map->getName();