summaryrefslogtreecommitdiffstats
path: root/src/SetChunkData.cpp
diff options
context:
space:
mode:
authorWoazboat <f.kargl@posteo.de>2015-04-27 21:18:21 +0200
committerWoazboat <f.kargl@posteo.de>2015-04-27 21:18:56 +0200
commit6caf08da9901d8e08fb5d024faf3580cde1e1461 (patch)
treea85ff166e878a44371a25dbbe75cb10a759bd765 /src/SetChunkData.cpp
parentMerge pull request #1894 from mc-server/RefactorManualBindingsTemplates (diff)
downloadcuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.gz
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.bz2
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.lz
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.xz
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.tar.zst
cuberite-6caf08da9901d8e08fb5d024faf3580cde1e1461.zip
Diffstat (limited to '')
-rw-r--r--src/SetChunkData.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SetChunkData.cpp b/src/SetChunkData.cpp
index 5a0bea980..f2b58570d 100644
--- a/src/SetChunkData.cpp
+++ b/src/SetChunkData.cpp
@@ -33,8 +33,8 @@ cSetChunkData::cSetChunkData(
const NIBBLETYPE * a_SkyLight,
const cChunkDef::HeightMap * a_HeightMap,
const cChunkDef::BiomeMap * a_Biomes,
- cEntityList & a_Entities,
- cBlockEntityList & a_BlockEntities,
+ cEntityList && a_Entities,
+ cBlockEntityList && a_BlockEntities,
bool a_ShouldMarkDirty
) :
m_ChunkX(a_ChunkX),
@@ -84,8 +84,8 @@ cSetChunkData::cSetChunkData(
}
// Move entities and blockentities:
- std::swap(m_Entities, a_Entities);
- std::swap(m_BlockEntities, a_BlockEntities);
+ m_Entities = std::move(a_Entities);
+ m_BlockEntities = std::move(a_BlockEntities);
}