summaryrefslogtreecommitdiff
path: root/src/resources/action.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-26 20:11:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-26 20:11:07 +0300
commit07675230038a24dd251581591379c8fe5cc7bfd1 (patch)
tree1e4633730515af717ba93aef111f855de5cc9b38 /src/resources/action.cpp
parent17f34f00d37432dae207be3d55ec531a738eb065 (diff)
downloadManaVerse-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.cpp6
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;