diff options
Diffstat (limited to 'src/NBT/StringTag.hpp')
-rw-r--r-- | src/NBT/StringTag.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/NBT/StringTag.hpp b/src/NBT/StringTag.hpp index 2fda6d3..8672b73 100644 --- a/src/NBT/StringTag.hpp +++ b/src/NBT/StringTag.hpp @@ -38,13 +38,16 @@ private: const uint8_t *ptr; public: + static const MakeType<StringTag> Type; + + StringTag(Buffer *buffer) { len = buffer->get16(); ptr = buffer->get(len); } - virtual Type getType() const { - return Type::String; + virtual const TagType & getType() const { + return Type; } virtual void print(std::ostream& os, const std::string &) const { |