diff --git a/src/spritecache.cpp b/src/spritecache.cpp index a5af46e535..e0aab931b3 100644 --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -667,7 +667,7 @@ static void DeleteEntriesFromSpriteCache(size_t target) SpriteID id; uint32 size; - bool operator<(const SpriteInfo &other) + bool operator<(const SpriteInfo &other) const { return this->lru < other.lru; }