summaryrefslogtreecommitdiff
path: root/src/resources/map/mapitem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-11 00:12:28 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-11 00:12:28 +0300
commitee75580d40c5c444d184a6ecbeb99493ba42085a (patch)
tree2db8ff3378810b33c8713d8e4eda1511c36ccb06 /src/resources/map/mapitem.cpp
parent4fbb944f132eb886a6f5b350e5a14a4fe380aacf (diff)
downloadmanaverse-ee75580d40c5c444d184a6ecbeb99493ba42085a.tar.gz
manaverse-ee75580d40c5c444d184a6ecbeb99493ba42085a.tar.bz2
manaverse-ee75580d40c5c444d184a6ecbeb99493ba42085a.tar.xz
manaverse-ee75580d40c5c444d184a6ecbeb99493ba42085a.zip
Add missing checks into resources.
Diffstat (limited to 'src/resources/map/mapitem.cpp')
-rw-r--r--src/resources/map/mapitem.cpp15
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")
}