diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-09-13 14:19:11 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-09-13 14:19:11 +0200 |
commit | af176c1f344a78a352ecaa6f252054f5ac38ec73 (patch) | |
tree | c4f42886095ca9e2d114e9b403977e6db3cc2cd1 /src/gui/minimap.cpp | |
parent | e93253b36b73d7335d98a3c73d532a1bbd7212a5 (diff) | |
download | mana-af176c1f344a78a352ecaa6f252054f5ac38ec73.tar.gz mana-af176c1f344a78a352ecaa6f252054f5ac38ec73.tar.bz2 mana-af176c1f344a78a352ecaa6f252054f5ac38ec73.tar.xz mana-af176c1f344a78a352ecaa6f252054f5ac38ec73.zip |
Avoid loading non-existing music and minimaps
Reviewed-by: Thorbjorn
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r-- | src/gui/minimap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 35844f64..8713d3f9 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -106,7 +106,8 @@ void Minimap::setMap(Map *map) if (minimapName.empty() && resman->exists(tempname)) minimapName = tempname; - mMapImage = resman->getImage(minimapName); + if (!minimapName.empty()) + mMapImage = resman->getImage(minimapName); } if (mMapImage) |