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