projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51e6feb
)
Compare values instead of pointers in Inventory::operator==
author
Kahrl
<kahrl@gmx.net>
Sat, 11 Jan 2014 10:17:15 +0000
(11:17 +0100)
committer
Kahrl
<kahrl@gmx.net>
Sat, 11 Jan 2014 18:47:16 +0000
(19:47 +0100)
src/inventory.cpp
patch
|
blob
|
history
diff --git
a/src/inventory.cpp
b/src/inventory.cpp
index 1f55c5305de3af68ebaa07b2faef631b2bb60c2c..4b1beb230c6a90fbe9dd71b463a433fb6d5638be 100644
(file)
--- 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;