From 07675230038a24dd251581591379c8fe5cc7bfd1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Apr 2016 20:11:07 +0300 Subject: Add memory count functions into MapLayer and SpecailLayer. Also change all memory count functions into const methods. --- src/resources/action.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/action.cpp') diff --git a/src/resources/action.cpp b/src/resources/action.cpp index a8bf83673..85f716b28 100644 --- a/src/resources/action.cpp +++ b/src/resources/action.cpp @@ -85,15 +85,15 @@ void Action::setLastFrameDelay(const int delay) noexcept } } -int Action::calcMemoryLocal() +int Action::calcMemoryLocal() const { return sizeof(Action); } -int Action::calcMemoryChilds(const int level) +int Action::calcMemoryChilds(const int level) const { int sz = 0; - FOR_EACH (AnimationIter, it, mAnimations) + FOR_EACH (AnimationCIter, it, mAnimations) { sz += sizeof(SpriteDirection::Type); Animation *const animation = (*it).second; -- cgit v1.2.3-70-g09d2