Fix crash when an extradata entry is used by more than one line

This commit is contained in:
Thomas Goyne 2014-06-09 16:47:25 -07:00
parent ac7161cd08
commit 831fbcd9a0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}