summaryrefslogtreecommitdiff
path: root/src/resources/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map')
-rw-r--r--src/resources/map/mapheights.cpp4
-rw-r--r--src/resources/map/objectslayer.cpp4
-rw-r--r--src/resources/map/speciallayer.cpp1
3 files changed, 7 insertions, 2 deletions
diff --git a/src/resources/map/mapheights.cpp b/src/resources/map/mapheights.cpp
index b785df72c..67f3b34ec 100644
--- a/src/resources/map/mapheights.cpp
+++ b/src/resources/map/mapheights.cpp
@@ -22,7 +22,9 @@
#include "debug.h"
-MapHeights::MapHeights(const int width, const int height) :
+MapHeights::MapHeights(const int width,
+ const int height) :
+ MemoryCounter(),
mWidth(width),
mHeight(height),
mTiles(new uint8_t[mWidth * mHeight])
diff --git a/src/resources/map/objectslayer.cpp b/src/resources/map/objectslayer.cpp
index 7af758d7f..b121fbcf9 100644
--- a/src/resources/map/objectslayer.cpp
+++ b/src/resources/map/objectslayer.cpp
@@ -24,7 +24,9 @@
#include "debug.h"
-ObjectsLayer::ObjectsLayer(const unsigned width, const unsigned height) :
+ObjectsLayer::ObjectsLayer(const unsigned width,
+ const unsigned height) :
+ MemoryCounter(),
mTiles(new MapObjectList*[width * height]),
mWidth(width),
mHeight(height)
diff --git a/src/resources/map/speciallayer.cpp b/src/resources/map/speciallayer.cpp
index ddf5cc35e..c1ca865d0 100644
--- a/src/resources/map/speciallayer.cpp
+++ b/src/resources/map/speciallayer.cpp
@@ -33,6 +33,7 @@
SpecialLayer::SpecialLayer(const std::string &name,
const int width,
const int height) :
+ MemoryCounter(),
mName(name),
mTiles(new MapItem*[width * height]),
mWidth(width),