diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-12 20:28:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-12 20:28:48 +0300 |
commit | 9bee2397ee738f72c83e9e3351dad507f1f3a94a (patch) | |
tree | b34205ece76fed2d83be7707926f1b9f612b4b0f /src/gui/windows/minimap.cpp | |
parent | 505ae2088405e69a9ed2fbf38ef8a7da08a33779 (diff) | |
download | manaverse-9bee2397ee738f72c83e9e3351dad507f1f3a94a.tar.gz manaverse-9bee2397ee738f72c83e9e3351dad507f1f3a94a.tar.bz2 manaverse-9bee2397ee738f72c83e9e3351dad507f1f3a94a.tar.xz manaverse-9bee2397ee738f72c83e9e3351dad507f1f3a94a.zip |
Fix empty minimap loading in Minimap.
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r-- | src/gui/windows/minimap.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index c7eeb6250..6a28e95af 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -185,7 +185,10 @@ void Minimap::setMap(const Map *const map) minimapName = tempname; } - mMapImage = resourceManager->getImage(minimapName); + if (!minimapName.empty()) + mMapImage = resourceManager->getImage(minimapName); + else + mMapImage = nullptr; mCustomMapImage = false; } } |