summaryrefslogtreecommitdiff
path: root/src/resources/imageset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/imageset.cpp')
-rw-r--r--src/resources/imageset.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/imageset.cpp b/src/resources/imageset.cpp
index e3ce9e7d1..2bf4641c6 100644
--- a/src/resources/imageset.cpp
+++ b/src/resources/imageset.cpp
@@ -75,3 +75,10 @@ Image* ImageSet::get(const size_type i) const
return mImages[i];
}
}
+
+int ImageSet::calcMemoryLocal()
+{
+ return sizeof(ImageSet) +
+ Resource::calcMemoryLocal() +
+ mImages.capacity() * sizeof(Image);
+}