]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/inventory.cpp
Fix player:set_animation() in third person view
[dragonfireclient.git] / src / inventory.cpp
index f4a87bec12d3587cda5f6bc74ca8e8bac0ab12f1..4b1beb230c6a90fbe9dd71b463a433fb6d5638be 100644 (file)
@@ -562,7 +562,7 @@ InventoryList & InventoryList::operator = (const InventoryList &other)
        return *this;
 }
 
-bool InventoryList::operator == (const InventoryList &other)
+bool InventoryList::operator == (const InventoryList &other) const
 {
        if(m_size != other.m_size)
                return false;
@@ -875,14 +875,14 @@ Inventory & Inventory::operator = (const Inventory &other)
        return *this;
 }
 
-bool Inventory::operator == (const Inventory &other)
+bool Inventory::operator == (const Inventory &other) const
 {
        if(m_lists.size() != other.m_lists.size())
                return false;
 
        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;