diff options
Diffstat (limited to 'src/nameidmapping.h')
-rw-r--r-- | src/nameidmapping.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nameidmapping.h b/src/nameidmapping.h index 071599e10..238deb451 100644 --- a/src/nameidmapping.h +++ b/src/nameidmapping.h @@ -70,6 +70,9 @@ public: 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; |