summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/NBT/IntArrayTag.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/NBT/IntArrayTag.hpp b/src/NBT/IntArrayTag.hpp
index 67c25b1..4dfcd05 100644
--- a/src/NBT/IntArrayTag.hpp
+++ b/src/NBT/IntArrayTag.hpp
@@ -58,7 +58,7 @@ public:
std::string inner = indent + " ";
for (size_t i = 0; i < len; i++) {
- uint32_t v = Buffer::parse32(&ptr[4*i]);
+ uint32_t v = getValue(i);
os << inner
<< v << " / "
@@ -77,6 +77,10 @@ public:
const uint8_t * getPointer() const {
return ptr;
}
+
+ uint32_t getValue(size_t i) const {
+ return Buffer::parse32(&ptr[4*i]);
+ }
};
}