mirror of https://github.com/odrling/Aegisub
Fix crash when an extradata entry is used by more than one line
This commit is contained in:
parent
ac7161cd08
commit
831fbcd9a0
|
@ -272,7 +272,7 @@ void AssFile::CleanExtradata() {
|
|||
std::vector<uint32_t> new_ids;
|
||||
for (auto& keyid : key_ids) {
|
||||
new_ids.push_back(keyid.second);
|
||||
ids.erase(std::remove(ids.begin(), ids.end(), keyid.second));
|
||||
ids.erase(remove(begin(ids), end(ids), keyid.second), end(ids));
|
||||
}
|
||||
line.ExtradataIds = new_ids;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue