diff --git a/src/library/cache_helper.h b/src/library/cache_helper.h index b2a3eabbdf..85c1b72dd4 100644 --- a/src/library/cache_helper.h +++ b/src/library/cache_helper.h @@ -28,7 +28,7 @@ public: } void clear() { - for (unsigned i = 0; i < 4; i++) m_cache_ptr[i].reset(); + for (unsigned i = 0; i < LEAN_NUM_TRANSPARENCY_MODES; i++) m_cache_ptr[i].reset(); } }; }