diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-01-05 09:54:52 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-01-05 09:54:52 -0700 |
commit | 4424ca5b9dea2a9824b83f3ab691b8c575a35267 (patch) | |
tree | d72a7f8c199bcd81d7dee57c0ddd0cef8f982552 | |
parent | c04eb3d86666aa96f36ccac03f29ad46c18529c3 (diff) | |
download | mana-4424ca5b9dea2a9824b83f3ab691b8c575a35267.tar.gz mana-4424ca5b9dea2a9824b83f3ab691b8c575a35267.tar.bz2 mana-4424ca5b9dea2a9824b83f3ab691b8c575a35267.tar.xz mana-4424ca5b9dea2a9824b83f3ab691b8c575a35267.zip |
Fix a crash when maps don't have names
-rw-r--r-- | src/gui/minimap.cpp | 2 |
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(); |