diff options
Diffstat (limited to 'src/maplayer.cpp')
-rw-r--r-- | src/maplayer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/maplayer.cpp b/src/maplayer.cpp index 67df3930b..1f8278304 100644 --- a/src/maplayer.cpp +++ b/src/maplayer.cpp @@ -43,7 +43,7 @@ #include "debug.h" MapLayer::MapLayer(const int x, const int y, const int width, const int height, - const bool fringeLayer): + const bool fringeLayer, const int mask): mX(x), mY(y), mWidth(width), @@ -52,6 +52,7 @@ MapLayer::MapLayer(const int x, const int y, const int width, const int height, mSpecialLayer(nullptr), mTempLayer(nullptr), mTempRows(), + mMask(mask), mIsFringeLayer(fringeLayer), mHighlightAttackRange(config.getBoolValue("highlightAttackRange")) { @@ -63,6 +64,7 @@ MapLayer::MapLayer(const int x, const int y, const int width, const int height, MapLayer::~MapLayer() { config.removeListener("highlightAttackRange", this); + CHECKLISTENERS delete [] mTiles; delete_all(mTempRows); mTempRows.clear(); |