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:
2959d6b
)
Fix NodeMetadataList loosing memory on deserialize due to invalid clear map call...
author
sapier
<Sapier at GMX dot net>
Sat, 17 Jan 2015 18:14:36 +0000
(19:14 +0100)
committer
sapier
<Sapier at GMX dot net>
Sat, 17 Jan 2015 18:14:36 +0000
(19:14 +0100)
src/nodemetadata.cpp
patch
|
blob
|
history
diff --git
a/src/nodemetadata.cpp
b/src/nodemetadata.cpp
index b8c7d3d9c11722cefec153c769bc2cb2df32985f..1e40a1630ea7c03c5c152546174cb0c42d31897c 100644
(file)
--- a/
src/nodemetadata.cpp
+++ b/
src/nodemetadata.cpp
@@
-109,10
+109,10
@@
void NodeMetadataList::serialize(std::ostream &os) const
void NodeMetadataList::deSerialize(std::istream &is, IGameDef *gamedef)
{
-
m_data.
clear();
+ clear();
u8 version = readU8(is);
-
+
if(version == 0){
// Nothing
return;