Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix NodeMetadataList loosing memory on deserialize due to invalid cle…
…ar map call instead of clear
  • Loading branch information
sapier authored and sapier committed Jan 17, 2015
1 parent 2959d6b commit a39c136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nodemetadata.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a39c136

Please sign in to comment.