diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChunkData/Copies.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |