diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-29 18:51:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-29 18:51:23 +0300 |
commit | 0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441 (patch) | |
tree | 38f1e10d59cef374025498e4e5b07576bcf7e8f6 /src/resources/map/speciallayer.cpp | |
parent | 373e404d20dd75e46b14451164c0914df100e236 (diff) | |
download | manaverse-0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441.tar.gz manaverse-0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441.tar.bz2 manaverse-0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441.tar.xz manaverse-0f8b2ddf88c1cdd6bfac1e76e8173bd12f57a441.zip |
Add name into SpecialLayer memory object.
Diffstat (limited to 'src/resources/map/speciallayer.cpp')
-rw-r--r-- | src/resources/map/speciallayer.cpp | 9 |
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)); } |