]> git.lizzy.rs Git - minetest.git/blobdiff - src/nameidmapping.h
Fix game selection in world creation (used always the first one)
[minetest.git] / src / nameidmapping.h
index 071599e109db0d00557df4582bab011efa0edb5f..238deb451514ef12abeeb5792db93e1c844eb332 100644 (file)
@@ -70,6 +70,9 @@ class NameIdMapping
                result = i->second;
                return true;
        }
+       u16 size() const{
+               return m_id_to_name.size();
+       }
 private:
        std::map<u16, std::string> m_id_to_name;
        std::map<std::string, u16> m_name_to_id;