mirror of
https://github.com/minetest/minetest.git
synced 2025-02-18 19:03:46 +01:00
Compare values instead of pointers in Inventory::operator==
This commit is contained in:
@ -882,7 +882,7 @@ bool Inventory::operator == (const Inventory &other) const
|
|||||||
|
|
||||||
for(u32 i=0; i<m_lists.size(); i++)
|
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 false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user