Skip to content
Permalink
Browse files

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

  • Loading branch information
kahrl committed Jan 11, 2014
1 parent 51e6feb commit 6f6f289db4a14045b1053b065e9bbac3d3cb0f33
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/inventory.cpp
@@ -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;

0 comments on commit 6f6f289

Please sign in to comment.