From a39c136e69b53c4f14d6ddb6d5a2bebc23dc9cbe Mon Sep 17 00:00:00 2001 From: sapier Date: Sat, 17 Jan 2015 19:14:36 +0100 Subject: Fix NodeMetadataList loosing memory on deserialize due to invalid clear map call instead of clear --- src/nodemetadata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nodemetadata.cpp b/src/nodemetadata.cpp index b8c7d3d9c..1e40a1630 100644 --- 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; -- cgit v1.2.3