From 868514ac621b3ca5c0a9f924461e37164dc712ff Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 Nov 2012 04:24:33 +0300 Subject: Add support for persistent directory under Android. This directory used for updates, configs, logs. --- src/compoundsprite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compoundsprite.cpp') 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(); -- cgit v1.2.3-60-g2f50