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
|
// Then remove all IDs found to be in use from this list
|
||||||
// Remaining is then all garbage IDs
|
// Remaining is then all garbage IDs
|
||||||
std::vector<uint32_t> ids;
|
std::vector<uint32_t> ids;
|
||||||
for (auto& it : Extradata) {
|
for (auto& it : Extradata)
|
||||||
ids.push_back(it.first);
|
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 each line, find which IDs it actually uses and remove them from the unused-list
|
||||||
for (auto& line : Events) {
|
for (auto& line : Events) {
|
||||||
|
|
Loading…
Reference in a new issue