From 0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Apr 2016 21:47:59 +0300 Subject: Add memory counting into MapHeights. --- src/resources/map/mapheights.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/resources/map/mapheights.cpp') diff --git a/src/resources/map/mapheights.cpp b/src/resources/map/mapheights.cpp index b4347cd1f..5d5c30aa8 100644 --- a/src/resources/map/mapheights.cpp +++ b/src/resources/map/mapheights.cpp @@ -39,3 +39,9 @@ void MapHeights::setHeight(const int x, const int y, const uint8_t height) { mTiles[x + y * mWidth] = height; } + +int MapHeights::calcMemoryLocal() const +{ + return sizeof(MapHeights) + + mWidth * mHeight; +} -- cgit v1.2.3-70-g09d2