diff --git a/aegisub/src/block_cache.h b/aegisub/src/block_cache.h index 5e7134ba3..222ea68cf 100644 --- a/aegisub/src/block_cache.h +++ b/aegisub/src/block_cache.h @@ -224,9 +224,9 @@ public: cur_size += (ba.size() - std::count(ba.begin(), ba.end(), (BlockT*)0)) * block_size; } // Hit max, clear all remaining blocks - for (; it != age.end(); ++it) + for (; it != age.end();) { - KillMacroBlock(**it); + KillMacroBlock(**it++); } }