Permalink
Browse files

Fix NodeMetadataList loosing memory on deserialize due to invalid cle…

…ar map call instead of clear
  • Loading branch information...
sapier sapier
sapier authored and sapier committed Jan 17, 2015
1 parent 2959d6b commit a39c136e69b53c4f14d6ddb6d5a2bebc23dc9cbe
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit a39c136

Please sign in to comment.