From 9bee2397ee738f72c83e9e3351dad507f1f3a94a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 May 2016 20:28:48 +0300 Subject: Fix empty minimap loading in Minimap. --- src/gui/windows/minimap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/minimap.cpp') 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; } } -- cgit v1.2.3-70-g09d2