forked from Mirrorlandia_minetest/minetest
Compare values instead of pointers in Inventory::operator==
This commit is contained in:
parent
51e6feb17c
commit
6f6f289db4
@ -882,7 +882,7 @@ bool Inventory::operator == (const Inventory &other) const
|
||||
|
||||
for(u32 i=0; i<m_lists.size(); i++)
|
||||
{
|
||||
if(m_lists[i] != other.m_lists[i])
|
||||
if(*m_lists[i] != *other.m_lists[i])
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user