Skip to content

Commit

Permalink
Compare values instead of pointers in Inventory::operator==
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Jan 11, 2014
1 parent 51e6feb commit 6f6f289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inventory.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 6f6f289

Please sign in to comment.