From 58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Dec 2016 19:59:49 +0300 Subject: Remove extra check from map. --- src/resources/map/map.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2