• Max Kellermann's avatar
    TagBuilder: allow adding duplicate tag types in Complement() · b3fe3e8b
    Max Kellermann authored
    Build a table of pre-existing tag types before adding new items.  The
    old way would check HasType() each time, which would return true after
    the first instance of that tag type had been added, preventing
    duplicate tag types to be merged.
    
    This broke duplicate tag types loaded from the state file, because
    this code path uses TagBuilder::Complement().
    b3fe3e8b
TagBuilder.cxx 5.96 KB