1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Fix NodeMetadataList loosing memory on deserialize due to invalid clear map call instead of clear

This commit is contained in:
sapier
2015-01-17 19:14:36 +01:00
parent 2959d6b3da
commit a39c136e69

View File

@@ -109,7 +109,7 @@ void NodeMetadataList::serialize(std::ostream &os) const
void NodeMetadataList::deSerialize(std::istream &is, IGameDef *gamedef) void NodeMetadataList::deSerialize(std::istream &is, IGameDef *gamedef)
{ {
m_data.clear(); clear();
u8 version = readU8(is); u8 version = readU8(is);