diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-11 00:12:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-11 00:12:28 +0300 |
commit | ee75580d40c5c444d184a6ecbeb99493ba42085a (patch) | |
tree | 2db8ff3378810b33c8713d8e4eda1511c36ccb06 /src/resources/map/mapitem.cpp | |
parent | 4fbb944f132eb886a6f5b350e5a14a4fe380aacf (diff) | |
download | mv-ee75580d40c5c444d184a6ecbeb99493ba42085a.tar.gz mv-ee75580d40c5c444d184a6ecbeb99493ba42085a.tar.bz2 mv-ee75580d40c5c444d184a6ecbeb99493ba42085a.tar.xz mv-ee75580d40c5c444d184a6ecbeb99493ba42085a.zip |
Add missing checks into resources.
Diffstat (limited to 'src/resources/map/mapitem.cpp')
-rw-r--r-- | src/resources/map/mapitem.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/resources/map/mapitem.cpp b/src/resources/map/mapitem.cpp index f1d045e7f..44f3ec889 100644 --- a/src/resources/map/mapitem.cpp +++ b/src/resources/map/mapitem.cpp @@ -164,15 +164,12 @@ void MapItem::draw(Graphics *const graphics, const int x, const int y, && mType != MapItemType::EMPTY) { Font *const font = gui->getFont(); - if (font) - { - const Color &color = userPalette->getColor(UserColorId::BEING); - font->drawString(graphics, - color, - color, - mName, - x, y); - } + const Color &color = userPalette->getColor(UserColorId::BEING); + font->drawString(graphics, + color, + color, + mName, + x, y); } BLOCK_END("MapItem::draw") } |