diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-14 22:08:00 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-14 22:08:00 +0000 |
commit | cf0b73ed23fa2213521c23fcd927aab37151a484 (patch) | |
tree | 9a013b20eb76c3a7aba621178067f65bedf434c7 | |
parent | d283db70abe904fddd8aefbd52b35d6e066dd98f (diff) | |
download | mana-cf0b73ed23fa2213521c23fcd927aab37151a484.tar.gz mana-cf0b73ed23fa2213521c23fcd927aab37151a484.tar.bz2 mana-cf0b73ed23fa2213521c23fcd927aab37151a484.tar.xz mana-cf0b73ed23fa2213521c23fcd927aab37151a484.zip |
Only set alpha value when the minimap image loaded correctly.
-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 { |