summaryrefslogtreecommitdiff
path: root/src/gui/windows/minimap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-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;
}
}