summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-18 04:24:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-18 04:24:33 +0300
commit868514ac621b3ca5c0a9f924461e37164dc712ff (patch)
tree60ef7bb390d4cca25081c7d6eeb809da2193aee3 /src/compoundsprite.cpp
parentdb00f34d1c385c8ec007a077c2f78aef764d3bbb (diff)
downloadplus-868514ac621b3ca5c0a9f924461e37164dc712ff.tar.gz
plus-868514ac621b3ca5c0a9f924461e37164dc712ff.tar.bz2
plus-868514ac621b3ca5c0a9f924461e37164dc712ff.tar.xz
plus-868514ac621b3ca5c0a9f924461e37164dc712ff.zip
Add support for persistent directory under Android.
This directory used for updates, configs, logs.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index 146ce9a1a..ab97f9821 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -495,11 +495,12 @@ bool CompoundSprite::updateFromCache() const
// logger->log("cache size: %d, hit %d, miss %d",
// (int)imagesCache.size(), hits, miss);
+ const size_t sz = size();
for (ImagesCache::iterator it = imagesCache.begin(),
it_end = imagesCache.end(); it != it_end; ++ it)
{
CompoundItem *const ic = *it;
- if (ic && ic->data.size() == size())
+ if (ic && ic->data.size() == sz)
{
bool fail(false);
VectorPointers::const_iterator it2 = ic->data.begin();