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