mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Increment iterators before erasing them rather than after
Originally committed to SVN as r6515.
This commit is contained in:
parent
45da185a43
commit
451b262672
@ -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…
x
Reference in New Issue
Block a user