summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2021-04-08 13:52:43 +0200
committerGitHub <noreply@github.com>2021-04-08 13:52:43 +0200
commit8d10f1b26af6fc2e34a0c507285aca29cf542b64 (patch)
tree8cbb7564222d24ab52fb888636c6c20a754553b6 /src/Generating/ComposableGenerator.cpp
parentcPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122) (diff)
downloadcuberite-8d10f1b26af6fc2e34a0c507285aca29cf542b64.tar
cuberite-8d10f1b26af6fc2e34a0c507285aca29cf542b64.tar.gz
cuberite-8d10f1b26af6fc2e34a0c507285aca29cf542b64.tar.bz2
cuberite-8d10f1b26af6fc2e34a0c507285aca29cf542b64.tar.lz
cuberite-8d10f1b26af6fc2e34a0c507285aca29cf542b64.tar.xz
cuberite-8d10f1b26af6fc2e34a0c507285aca29cf542b64.tar.zst
cuberite-8d10f1b26af6fc2e34a0c507285aca29cf542b64.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/ComposableGenerator.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp
index 9b170ecc8..a688e7de6 100644
--- a/src/Generating/ComposableGenerator.cpp
+++ b/src/Generating/ComposableGenerator.cpp
@@ -459,10 +459,9 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
"94|5|false; 97|5|false; 100|5|false; "
"103|6|false");
int Radius = a_IniFile.GetValueSetI("Generator", "ObsidianPillarsRadius", 43);
- // The init method is called manually because the linker can't access the cChunkDef::Width in the constructor
- auto Gen = new cEnderDragonFightStructuresGen(m_Seed);
+ auto Gen = std::make_unique<cEnderDragonFightStructuresGen>(m_Seed);
Gen->Init(Pillars, Radius);
- m_FinishGens.push_back(cFinishGenPtr(Gen));
+ m_FinishGens.push_back(std::move(Gen));
}
else if (NoCaseCompare(finisher, "GlowStone") == 0)
{