forked from mia/Aegisub
Don't check for used extradata ids if there are none
This commit is contained in:
parent
882afc5111
commit
d0603fde88
1 changed files with 2 additions and 2 deletions
|
@ -259,9 +259,9 @@ void AssFile::CleanExtradata() {
|
|||
// Then remove all IDs found to be in use from this list
|
||||
// Remaining is then all garbage IDs
|
||||
std::vector<uint32_t> ids;
|
||||
for (auto& it : Extradata) {
|
||||
for (auto& it : Extradata)
|
||||
ids.push_back(it.first);
|
||||
}
|
||||
if (ids.empty()) return;
|
||||
|
||||
// For each line, find which IDs it actually uses and remove them from the unused-list
|
||||
for (auto& line : Events) {
|
||||
|
|
Loading…
Reference in a new issue