summaryrefslogtreecommitdiff
path: root/src/resources/map/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-29 21:47:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-29 21:47:59 +0300
commit0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e (patch)
tree17c2ff6abcf8af8ae7550963e256323d6cb0b61e /src/resources/map/map.cpp
parent10b7c4a1313395291a77c50189b31e9daf38a2b0 (diff)
downloadmanaplus-0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e.tar.gz
manaplus-0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e.tar.bz2
manaplus-0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e.tar.xz
manaplus-0c97cbd3ab4a6f425e42c2413d7dfe06c2da014e.zip
Add memory counting into MapHeights.
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r--src/resources/map/map.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index 7045706e1..51bd7952c 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -1745,6 +1745,7 @@ int Map::calcMemoryChilds(const int level) const
mTempLayer->calcMemory(level + 1);
if (mObjects)
mObjects->calcMemory(level + 1);
- // +++ need calc mHeights
+ if (mHeights)
+ mHeights->calcMemory(level + 1);
return sz;
}