diff options
Diffstat (limited to 'src/NBT/ShortTag.hpp')
-rw-r--r-- | src/NBT/ShortTag.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/NBT/ShortTag.hpp b/src/NBT/ShortTag.hpp index c66dc05..593a1ed 100644 --- a/src/NBT/ShortTag.hpp +++ b/src/NBT/ShortTag.hpp @@ -37,12 +37,15 @@ private: const uint8_t *ptr; public: + static const MakeType<ShortTag> Type; + + ShortTag(Buffer *buffer) { ptr = buffer->get(2); } - virtual Type getType() const { - return Type::Short; + virtual const TagType & getType() const { + return Type; } virtual void print(std::ostream& os, const std::string &) const { |