summaryrefslogtreecommitdiff
path: root/src/maplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-08 00:17:45 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-08 00:17:45 +0300
commit593cccb16074fe9269dd2f278bd79859769eb1fd (patch)
treed8b3d93001021c59622ea88140dbbef8aee05013 /src/maplayer.cpp
parentb7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (diff)
downloadmanaverse-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.gz
manaverse-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.bz2
manaverse-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.xz
manaverse-593cccb16074fe9269dd2f278bd79859769eb1fd.zip
Improve constructors in some classes.
Diffstat (limited to 'src/maplayer.cpp')
-rw-r--r--src/maplayer.cpp10
1 files changed, 7 insertions, 3 deletions
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<Image*>(nullptr));