aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-01-11 11:17:15 +0100
committerKahrl <kahrl@gmx.net>2014-01-11 19:47:16 +0100
commit6f6f289db4a14045b1053b065e9bbac3d3cb0f33 (patch)
treeead4bf334e4244db16abaa5368e026358bec799e /src
parent51e6feb17c5929c60b5e8b87cb02c0d22ddb6ff5 (diff)
downloadminetest-6f6f289db4a14045b1053b065e9bbac3d3cb0f33.tar.gz
minetest-6f6f289db4a14045b1053b065e9bbac3d3cb0f33.tar.bz2
minetest-6f6f289db4a14045b1053b065e9bbac3d3cb0f33.zip
Compare values instead of pointers in Inventory::operator==
Diffstat (limited to 'src')
-rw-r--r--src/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 1f55c5305..4b1beb230 100644
--- a/src/inventory.cpp
+++ b/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;