summaryrefslogtreecommitdiffstats
path: root/tests/ChunkData/Copies.cpp
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-08-21 18:56:53 +0200
committerAlexander Harkness <me@bearbin.net>2017-08-21 18:56:53 +0200
commit096cdac80d222ac0be2a0554a759a0b16c1c34f6 (patch)
tree03190afb388f999bf9740fbae15d688780f036d5 /tests/ChunkData/Copies.cpp
parentAward player an achievement when creating a beacon (#3930) (diff)
downloadcuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.gz
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.bz2
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.lz
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.xz
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.tar.zst
cuberite-096cdac80d222ac0be2a0554a759a0b16c1c34f6.zip
Diffstat (limited to '')
-rw-r--r--tests/ChunkData/Copies.cpp3
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);