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