From 10b7c4a1313395291a77c50189b31e9daf38a2b0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Apr 2016 21:03:25 +0300 Subject: Add memory counting into ObjectsLayer. --- src/resources/map/map.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/resources/map/map.cpp') diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 01f646877..7045706e1 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -1743,7 +1743,8 @@ int Map::calcMemoryChilds(const int level) const mSpecialLayer->calcMemory(level + 1); if (mTempLayer) mTempLayer->calcMemory(level + 1); - // +++ need calc mObjects + if (mObjects) + mObjects->calcMemory(level + 1); // +++ need calc mHeights return sz; } -- cgit v1.2.3-70-g09d2