diff options
Diffstat (limited to 'src/resources/map/objectslayer.cpp')
-rw-r--r-- | src/resources/map/objectslayer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/map/objectslayer.cpp b/src/resources/map/objectslayer.cpp index ea4f6a27f..7af758d7f 100644 --- a/src/resources/map/objectslayer.cpp +++ b/src/resources/map/objectslayer.cpp @@ -74,3 +74,9 @@ MapObjectList *ObjectsLayer::getAt(const unsigned x, const unsigned y) const return nullptr; return mTiles[x + y * mWidth]; } + +int ObjectsLayer::calcMemoryLocal() const +{ + return sizeof(ObjectsLayer) + + (sizeof(MapObjectList) + sizeof(MapObjectList*)) * mWidth * mHeight; +} |