summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/resources/animation/animation.cpp2
-rw-r--r--src/resources/map/mapheights.cpp4
-rw-r--r--src/resources/map/objectslayer.cpp4
-rw-r--r--src/resources/map/speciallayer.cpp1
4 files changed, 9 insertions, 2 deletions
diff --git a/src/resources/animation/animation.cpp b/src/resources/animation/animation.cpp
index 6eac889ed..22ca96fd7 100644
--- a/src/resources/animation/animation.cpp
+++ b/src/resources/animation/animation.cpp
@@ -25,6 +25,7 @@
#include "debug.h"
Animation::Animation() noexcept2 :
+ MemoryCounter(),
mFrames(),
mName("animation"),
mDuration(0)
@@ -32,6 +33,7 @@ Animation::Animation() noexcept2 :
}
Animation::Animation(const std::string &name) noexcept2 :
+ MemoryCounter(),
mFrames(),
mName(name),
mDuration(0)
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),