Jeck - Cache misses report CACHE_ERROR_404. This allows alternate card renders to display steadily (that is, without reverting to cardback) in deck viewer.

This commit is contained in:
wagic.jeck
2009-09-27 02:55:59 +00:00
parent ec7b257531
commit f922c21ad2
+3 -1
View File
@@ -1223,8 +1223,10 @@ cacheItem * WCache<cacheItem, cacheActual>::Get(string id, int style, int submod
} }
//Well, we've found something... //Well, we've found something...
if(it != cache.end()) { if(it != cache.end()) {
if(!it->second && (submode & CACHE_EXISTING)) if(!it->second && (submode & CACHE_EXISTING)){
mError = CACHE_ERROR_404;
return NULL; //A miss. return NULL; //A miss.
}
else else
return it->second; //A hit. return it->second; //A hit.
} }