summaryrefslogtreecommitdiffstats
path: root/src/NBT/LongArrayTag.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NBT/LongArrayTag.hpp')
-rw-r--r--src/NBT/LongArrayTag.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/NBT/LongArrayTag.hpp b/src/NBT/LongArrayTag.hpp
index 1ca3ae6..545798f 100644
--- a/src/NBT/LongArrayTag.hpp
+++ b/src/NBT/LongArrayTag.hpp
@@ -40,13 +40,16 @@ private:
const uint8_t *ptr;
public:
+ static const MakeType<LongArrayTag> Type;
+
+
LongArrayTag(Buffer *buffer) {
len = buffer->get32();
ptr = buffer->get(8*len);
}
- virtual Type getType() const {
- return Type::LongArray;
+ virtual const TagType & getType() const {
+ return Type;
}
virtual void print(std::ostream& os, const std::string &indent) const {