From ee75580d40c5c444d184a6ecbeb99493ba42085a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Jul 2015 00:12:28 +0300 Subject: Add missing checks into resources. --- src/resources/map/mapitem.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/resources/map') 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") } -- cgit v1.2.3-70-g09d2