diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nameidmapping.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nameidmapping.h b/src/nameidmapping.h index 23838c8ff..a0336864b 100644 --- a/src/nameidmapping.h +++ b/src/nameidmapping.h @@ -32,10 +32,12 @@ public: void serialize(std::ostream &os) const; void deSerialize(std::istream &is); - void clear(){ + void clear() + { m_id_to_name.clear(); m_name_to_id.clear(); } + void set(u16 id, const std::string &name){ m_id_to_name[id] = name; m_name_to_id[name] = id; |