Add cancel button to password change menu. (#5720)
[oweals/minetest.git] / src / content_sao.h
index e0879557941507e77de18c859872dcb0032c410e..0dad548057c284b097a4be4eb849e21e8445ffbe 100644 (file)
@@ -277,6 +277,16 @@ public:
                return true;
        }
 
+       inline void removeExtendedAttribute(const std::string &attr)
+       {
+               PlayerAttributes::iterator it = m_extra_attributes.find(attr);
+               if (it == m_extra_attributes.end())
+                       return;
+
+               m_extra_attributes.erase(it);
+               m_extended_attributes_modified = true;
+       }
+
        inline const PlayerAttributes &getExtendedAttributes()
        {
                return m_extra_attributes;