summaryrefslogtreecommitdiffstats
path: root/src/NBT/ByteTag.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NBT/ByteTag.hpp')
-rw-r--r--src/NBT/ByteTag.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/NBT/ByteTag.hpp b/src/NBT/ByteTag.hpp
index 28b8b1a..c578b9c 100644
--- a/src/NBT/ByteTag.hpp
+++ b/src/NBT/ByteTag.hpp
@@ -37,12 +37,15 @@ private:
uint8_t value;
public:
+ static const MakeType<ByteTag> Type;
+
+
ByteTag(Buffer *buffer) {
value = buffer->get8();
}
- virtual Type getType() const {
- return Type::Byte;
+ virtual const TagType & getType() const {
+ return Type;
}
virtual void print(std::ostream& os, const std::string &) const {