diff options
Diffstat (limited to 'src/Generating/HeiGen.h')
-rw-r--r-- | src/Generating/HeiGen.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/HeiGen.h b/src/Generating/HeiGen.h index c8118860e..ebdfef70f 100644 --- a/src/Generating/HeiGen.h +++ b/src/Generating/HeiGen.h @@ -73,7 +73,7 @@ class cHeiGenMultiCache: public cTerrainHeightGen { public: - cHeiGenMultiCache(cTerrainHeightGenPtr a_HeightGenToCache, size_t a_SubCacheSize, size_t a_NumSubCaches); + cHeiGenMultiCache(const cTerrainHeightGenPtr & a_HeightGenToCache, size_t a_SubCacheSize, size_t a_NumSubCaches); // cTerrainHeightGen overrides: virtual void GenHeightMap(cChunkCoords a_ChunkCoords, cChunkDef::HeightMap & a_HeightMap) override; @@ -176,7 +176,7 @@ public: cHeiGenBiomal(int a_Seed, cBiomeGenPtr a_BiomeGen): m_Noise(a_Seed), - m_BiomeGen(a_BiomeGen) + m_BiomeGen(std::move(a_BiomeGen)) { } |