diff --git a/modules/juce_core/detail/juce_LruCache.h b/modules/juce_core/detail/juce_LruCache.h index 901a9bfcf3..1a9d84c58d 100644 --- a/modules/juce_core/detail/juce_LruCache.h +++ b/modules/juce_core/detail/juce_LruCache.h @@ -74,7 +74,7 @@ public: ++insertionCounter; - while (list.size() >= maxEntries) + while (map.size() >= maxEntries) { const auto toRemove = list.begin(); map.erase (*toRemove);