summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/map/map.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index 97e6def6a..327df358c 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -298,12 +298,9 @@ void Map::initializeAmbientLayers() restrict2
void Map::addLayer(MapLayer *const layer) restrict2
{
- if (layer)
- {
- mLayers.push_back(layer);
- if (layer->isFringeLayer() && !mFringeLayer)
- mFringeLayer = layer;
- }
+ mLayers.push_back(layer);
+ if (layer->isFringeLayer() && !mFringeLayer)
+ mFringeLayer = layer;
}
void Map::addTileset(Tileset *const tileset) restrict2