Compare values instead of pointers in Inventory::operator==
authorKahrl <kahrl@gmx.net>
Sat, 11 Jan 2014 10:17:15 +0000 (11:17 +0100)
committerKahrl <kahrl@gmx.net>
Sat, 11 Jan 2014 18:47:16 +0000 (19:47 +0100)
src/inventory.cpp

index 1f55c5305de3af68ebaa07b2faef631b2bb60c2c..4b1beb230c6a90fbe9dd71b463a433fb6d5638be 100644 (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;