]> git.lizzy.rs Git - minetest.git/blobdiff - src/nodemetadata.cpp
Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ServerMap...
[minetest.git] / src / nodemetadata.cpp
index 0631d974adfb1b31ebffa8f752c75d03473f7982..1e40a1630ea7c03c5c152546174cb0c42d31897c 100644 (file)
@@ -83,7 +83,7 @@ void NodeMetadataList::serialize(std::ostream &os) const
                Version 0 is a placeholder for "nothing to see here; go away."
        */
 
-       if(m_data.size() == 0){
+       if(m_data.empty()){
                writeU8(os, 0); // version
                return;
        }
@@ -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;