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