diff --git a/aegisub/src/block_cache.h b/aegisub/src/block_cache.h index 6f8143181..b63d98b6a 100644 --- a/aegisub/src/block_cache.h +++ b/aegisub/src/block_cache.h @@ -131,7 +131,7 @@ class DataBlockCache { MacroBlock *mb; AccessData(MacroBlock *_mb) : mb(_mb) { } // Sort in decreasing order: most accesses first - bool operator < (const AccessData &other) { return mb->access_count > other.mb->access_count; } + bool operator < (const AccessData &other) const { return mb->access_count > other.mb->access_count; } }; /// @brief Dispose of all blocks in a macroblock and mark it empty