diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/minimap.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 8941a390..98ef8338 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -53,7 +53,11 @@ void Minimap::setMap(Map *map) { ResourceManager *resman = ResourceManager::getInstance(); mMapImage = resman->getImage(map->getProperty("minimap"), IMG_ALPHA); - mMapImage->setAlpha(0.7); + + if (mMapImage != NULL) + { + mMapImage->setAlpha(0.7); + } } else { |