From 096cdac80d222ac0be2a0554a759a0b16c1c34f6 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Mon, 21 Aug 2017 17:56:53 +0100 Subject: Implement protocol level chunk sparsing (#3864) --- tests/ChunkData/Copies.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/ChunkData/Copies.cpp b/tests/ChunkData/Copies.cpp index 6353d7273..03d88da97 100644 --- a/tests/ChunkData/Copies.cpp +++ b/tests/ChunkData/Copies.cpp @@ -27,7 +27,8 @@ int main(int argc, char** argv) buffer.SetBlock(3, 1, 4, 0xDE); buffer.SetMeta(3, 1, 4, 0xA); - cChunkData copy = buffer.Copy(); + cChunkData copy(Pool); + copy.Assign(buffer); testassert(copy.GetBlock(3, 1, 4) == 0xDE); testassert(copy.GetMeta(3, 1, 4) == 0xA); -- cgit v1.2.3