diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-17 19:59:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-17 19:59:49 +0300 |
commit | 58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f (patch) | |
tree | 9994d4b0bd0895a96af0e1593c490f55b55f6f41 /src/resources/map/map.cpp | |
parent | 8e2344e5648f3e0dd9a43e807e9fc56693e32ac7 (diff) | |
download | mv-58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f.tar.gz mv-58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f.tar.bz2 mv-58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f.tar.xz mv-58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f.zip |
Remove extra check from map.
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r-- | src/resources/map/map.cpp | 9 |
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 |