summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/map/maplayer.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp
index 15a0bf5eb..95e835302 100644
--- a/src/resources/map/maplayer.cpp
+++ b/src/resources/map/maplayer.cpp
@@ -420,11 +420,8 @@ void MapLayer::drawSpecialLayer(Graphics *const graphics,
{
const int px1 = x * mapTileSize - scrollX;
const MapItem *const item = mTempLayer->mTiles[ptr + x];
- if (item)
- {
- item->draw(graphics, px1, py1,
- mapTileSize, mapTileSize);
- }
+ item->draw(graphics, px1, py1,
+ mapTileSize, mapTileSize);
x += mTempLayer->mCache[ptr + x];
}
}