summaryrefslogtreecommitdiffstats
path: root/src/NBT/ListTag.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NBT/ListTag.hpp')
-rw-r--r--src/NBT/ListTag.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/NBT/ListTag.hpp b/src/NBT/ListTag.hpp
index 1a48062..757a0aa 100644
--- a/src/NBT/ListTag.hpp
+++ b/src/NBT/ListTag.hpp
@@ -53,10 +53,7 @@ private:
Type type;
ListTag(Type type0, Buffer *buffer) : type(type0) {
- uint32_t len = uint32_t(buffer->get()) << 24;
- len |= uint32_t(buffer->get()) << 16;
- len |= uint32_t(buffer->get()) << 8;
- len |= uint32_t(buffer->get());
+ uint32_t len = buffer->get32();
this->resize(len);