1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Compare values instead of pointers in Inventory::operator==

This commit is contained in:
Kahrl 2014-01-11 11:17:15 +01:00
parent 51e6feb17c
commit 6f6f289db4

View file

@ -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;