summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-12 20:28:48 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-12 20:28:48 +0300
commit9bee2397ee738f72c83e9e3351dad507f1f3a94a (patch)
treeb34205ece76fed2d83be7707926f1b9f612b4b0f
parent505ae2088405e69a9ed2fbf38ef8a7da08a33779 (diff)
downloadmv-9bee2397ee738f72c83e9e3351dad507f1f3a94a.tar.gz
mv-9bee2397ee738f72c83e9e3351dad507f1f3a94a.tar.bz2
mv-9bee2397ee738f72c83e9e3351dad507f1f3a94a.tar.xz
mv-9bee2397ee738f72c83e9e3351dad507f1f3a94a.zip
Fix empty minimap loading in Minimap.
-rw-r--r--src/gui/windows/minimap.cpp5
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;
}
}