summaryrefslogtreecommitdiff
path: root/src/resources/map/speciallayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map/speciallayer.cpp')
-rw-r--r--src/resources/map/speciallayer.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/resources/map/speciallayer.cpp b/src/resources/map/speciallayer.cpp
index e53900134..e57189d84 100644
--- a/src/resources/map/speciallayer.cpp
+++ b/src/resources/map/speciallayer.cpp
@@ -30,10 +30,13 @@
#include "debug.h"
-SpecialLayer::SpecialLayer(const int width, const int height) :
+SpecialLayer::SpecialLayer(const std::string &name,
+ const int width,
+ const int height) :
+ mName(name),
+ mTiles(new MapItem*[width * height]),
mWidth(width),
- mHeight(height),
- mTiles(new MapItem*[mWidth * mHeight])
+ mHeight(height)
{
std::fill_n(mTiles, mWidth * mHeight, static_cast<MapItem*>(nullptr));
}