Fix incorrect sizeof argument to memcmp in EEVEE's ObjectKey comparison
This commit is contained in:
parent
83724fe1eb
commit
74bb280df5
|
@ -80,12 +80,12 @@ class ObjectKey {
|
|||
|
||||
bool operator<(const ObjectKey &k) const
|
||||
{
|
||||
return memcmp(this, &k, sizeof(this)) < 0;
|
||||
return memcmp(this, &k, sizeof(*this)) < 0;
|
||||
}
|
||||
|
||||
bool operator==(const ObjectKey &k) const
|
||||
{
|
||||
return memcmp(this, &k, sizeof(this)) == 0;
|
||||
return memcmp(this, &k, sizeof(*this)) == 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue