diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-26 20:11:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-26 20:11:07 +0300 |
commit | 07675230038a24dd251581591379c8fe5cc7bfd1 (patch) | |
tree | 1e4633730515af717ba93aef111f855de5cc9b38 /src/resources/action.cpp | |
parent | 17f34f00d37432dae207be3d55ec531a738eb065 (diff) | |
download | ManaVerse-07675230038a24dd251581591379c8fe5cc7bfd1.tar.gz ManaVerse-07675230038a24dd251581591379c8fe5cc7bfd1.tar.bz2 ManaVerse-07675230038a24dd251581591379c8fe5cc7bfd1.tar.xz ManaVerse-07675230038a24dd251581591379c8fe5cc7bfd1.zip |
Add memory count functions into MapLayer and SpecailLayer.
Also change all memory count functions into const methods.
Diffstat (limited to 'src/resources/action.cpp')
-rw-r--r-- | src/resources/action.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |