summaryrefslogtreecommitdiffstats
path: root/source/WorldStorage/FastNBT.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/WorldStorage/FastNBT.h')
-rw-r--r--source/WorldStorage/FastNBT.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/WorldStorage/FastNBT.h b/source/WorldStorage/FastNBT.h
index 1cae4879f..7323c29cb 100644
--- a/source/WorldStorage/FastNBT.h
+++ b/source/WorldStorage/FastNBT.h
@@ -190,6 +190,13 @@ public:
return res;
}
+ inline AString GetName(int a_Tag) const
+ {
+ AString res;
+ res.assign(m_Data + m_Tags[a_Tag].m_NameStart, m_Tags[a_Tag].m_NameLength);
+ return res;
+ }
+
protected:
const char * m_Data;
int m_Length;