summaryrefslogtreecommitdiff
path: root/src/resources/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-17 19:59:49 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-17 19:59:49 +0300
commit58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f (patch)
tree9994d4b0bd0895a96af0e1593c490f55b55f6f41 /src/resources/map
parent8e2344e5648f3e0dd9a43e807e9fc56693e32ac7 (diff)
downloadmanaplus-58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f.tar.gz
manaplus-58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f.tar.bz2
manaplus-58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f.tar.xz
manaplus-58918c1eedfb1d2d6c46a3156e0c4db4f1e3720f.zip
Remove extra check from map.
Diffstat (limited to 'src/resources/map')
-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