summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp
index 9420afb4..090f4da7 100644
--- a/src/flooritem.cpp
+++ b/src/flooritem.cpp
@@ -69,8 +69,9 @@ void FloorItem::draw(Graphics *graphics, int offsetX, int offsetY) const
{
Image *image = mItem->getDrawImage();
- if (image && mAlpha != image->getAlpha())
- image->setAlpha(mAlpha);
+ if (image)
+ if (mAlpha != image->getAlpha())
+ image->setAlpha(mAlpha);
graphics->drawImage(image, mX * 32 + offsetX, mY * 32 + offsetY);
}