diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-18 04:24:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-18 04:24:33 +0300 |
commit | 868514ac621b3ca5c0a9f924461e37164dc712ff (patch) | |
tree | 60ef7bb390d4cca25081c7d6eeb809da2193aee3 /src/compoundsprite.cpp | |
parent | db00f34d1c385c8ec007a077c2f78aef764d3bbb (diff) | |
download | mv-868514ac621b3ca5c0a9f924461e37164dc712ff.tar.gz mv-868514ac621b3ca5c0a9f924461e37164dc712ff.tar.bz2 mv-868514ac621b3ca5c0a9f924461e37164dc712ff.tar.xz mv-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.cpp | 3 |
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(); |