mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix NodeMetadataList loosing memory on deserialize due to invalid clear map call instead of clear
This commit is contained in:
parent
2959d6b3da
commit
a39c136e69
1 changed files with 2 additions and 2 deletions
|
@ -109,10 +109,10 @@ 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);
|
||||||
|
|
||||||
if(version == 0){
|
if(version == 0){
|
||||||
// Nothing
|
// Nothing
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue