mirror of
https://github.com/holub/mame
synced 2025-06-02 02:49:44 +03:00
fixed hash collection == so a collection with only a sha1 and a collection with only a crc are not considered equal. this stops goofy hoops from being reported as a match for every chd (ghv101 only has crc listed, no sha1's).
This commit is contained in:
parent
7a63b54cee
commit
3bfa2d07cd
@ -445,9 +445,9 @@ bool hash_collection::operator==(const hash_collection &rhs) const
|
|||||||
for (hash_base *hash = m_hashlist.first(); hash != NULL; hash = hash->next())
|
for (hash_base *hash = m_hashlist.first(); hash != NULL; hash = hash->next())
|
||||||
{
|
{
|
||||||
hash_base *rhs_hash = rhs.hash(hash->id());
|
hash_base *rhs_hash = rhs.hash(hash->id());
|
||||||
if (hash != NULL)
|
if (hash != NULL && rhs_hash != NULL)
|
||||||
{
|
{
|
||||||
if (rhs_hash != NULL && *hash != *rhs_hash)
|
if (*hash != *rhs_hash)
|
||||||
return false;
|
return false;
|
||||||
matches++;
|
matches++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user