summaryrefslogtreecommitdiffstats
path: root/src/NBT/FloatTag.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NBT/FloatTag.hpp')
-rw-r--r--src/NBT/FloatTag.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/NBT/FloatTag.hpp b/src/NBT/FloatTag.hpp
index 4442f1a..8748bc6 100644
--- a/src/NBT/FloatTag.hpp
+++ b/src/NBT/FloatTag.hpp
@@ -36,12 +36,15 @@ class FloatTag : public Tag {
const uint8_t *ptr;
public:
+ static const MakeType<FloatTag> Type;
+
+
FloatTag(Buffer *buffer) {
ptr = buffer->get(4);
}
- virtual Type getType() const {
- return Type::Float;
+ virtual const TagType & getType() const {
+ return Type;
}
virtual void print(std::ostream& os, const std::string &) const {