From 593cccb16074fe9269dd2f278bd79859769eb1fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Sep 2012 00:17:45 +0300 Subject: Improve constructors in some classes. --- src/maplayer.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/maplayer.cpp') diff --git a/src/maplayer.cpp b/src/maplayer.cpp index f7db290b6..cf40cfae7 100644 --- a/src/maplayer.cpp +++ b/src/maplayer.cpp @@ -41,11 +41,15 @@ MapLayer::MapLayer(const int x, const int y, const int width, const int height, const bool fringeLayer): - mX(x), mY(y), - mWidth(width), mHeight(height), + mX(x), + mY(y), + mWidth(width), + mHeight(height), mIsFringeLayer(fringeLayer), mHighlightAttackRange(config.getBoolValue("highlightAttackRange")), - mTiles(new Image*[mWidth * mHeight]) + mTiles(new Image*[mWidth * mHeight]), + mSpecialLayer(nullptr), + mTempLayer(nullptr) { std::fill_n(mTiles, mWidth * mHeight, static_cast(nullptr)); -- cgit v1.2.3-60-g2f50