summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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)
{