From 0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Apr 2016 18:51:23 +0300 Subject: Add name into SpecialLayer memory object. --- src/resources/map/speciallayer.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/resources/map/speciallayer.cpp') 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(nullptr)); } -- cgit v1.2.3-70-g09d2