Skip to content

Commit a39c136

Browse files
sapiersapier
sapier
authored and
sapier
committedJan 17, 2015
Fix NodeMetadataList loosing memory on deserialize due to invalid clear map call instead of clear
1 parent 2959d6b commit a39c136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/nodemetadata.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ void NodeMetadataList::serialize(std::ostream &os) const
109109

110110
void NodeMetadataList::deSerialize(std::istream &is, IGameDef *gamedef)
111111
{
112-
m_data.clear();
112+
clear();
113113

114114
u8 version = readU8(is);
115-
115+
116116
if(version == 0){
117117
// Nothing
118118
return;

0 commit comments

Comments
 (0)
Please sign in to comment.