forked from mia/Aegisub
Increment iterators before erasing them rather than after
Originally committed to SVN as r6515.
This commit is contained in:
parent
45da185a43
commit
451b262672
1 changed files with 2 additions and 2 deletions
|
@ -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++);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue