aboutsummaryrefslogtreecommitdiff
path: root/zencore/compactbinary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zencore/compactbinary.cpp')
-rw-r--r--zencore/compactbinary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/compactbinary.cpp b/zencore/compactbinary.cpp
index 4ee9e9281..cae6c506d 100644
--- a/zencore/compactbinary.cpp
+++ b/zencore/compactbinary.cpp
@@ -1079,7 +1079,7 @@ LoadCompactBinary(BinaryReader& Ar, BufferAllocator Allocator)
// Allocate the buffer, copy the header, and read the remainder of the field.
UniqueBuffer Buffer = Allocator(FieldSize);
ZEN_ASSERT(Buffer.GetSize() == FieldSize);
- MutableMemoryView View = Buffer.GetView();
+ MutableMemoryView View = Buffer.GetMutableView();
memcpy(View.GetData(), HeaderBytes.data(), HeaderBytes.size());
View.RightChopInline(HeaderBytes.size());
if (!View.IsEmpty())