summaryrefslogtreecommitdiff
path: root/src/resources/map/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-29 21:03:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-29 21:03:25 +0300
commit10b7c4a1313395291a77c50189b31e9daf38a2b0 (patch)
tree8f0eea8bc2567b0431bb03d45126786cddddcf60 /src/resources/map/map.cpp
parent5f6e0176cc64824a28391070ddb249a6efff0b7c (diff)
downloadManaVerse-10b7c4a1313395291a77c50189b31e9daf38a2b0.tar.gz
ManaVerse-10b7c4a1313395291a77c50189b31e9daf38a2b0.tar.bz2
ManaVerse-10b7c4a1313395291a77c50189b31e9daf38a2b0.tar.xz
ManaVerse-10b7c4a1313395291a77c50189b31e9daf38a2b0.zip
Add memory counting into ObjectsLayer.
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 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;
}