summaryrefslogtreecommitdiffstats
path: root/src/NBT/ByteArrayTag.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NBT/ByteArrayTag.hpp')
-rw-r--r--src/NBT/ByteArrayTag.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/NBT/ByteArrayTag.hpp b/src/NBT/ByteArrayTag.hpp
index d5a6333..ee0d7d1 100644
--- a/src/NBT/ByteArrayTag.hpp
+++ b/src/NBT/ByteArrayTag.hpp
@@ -47,9 +47,7 @@ private:
len |= uint32_t(buffer->get());
value.resize(len);
-
- for (uint32_t i = 0; i < len; i++)
- value[i] = buffer->get();
+ buffer->getData(value.data(), len);
}
public: