1
0
Fork 0

fixed build (#5181)

This commit is contained in:
12xx12 2021-04-08 13:52:43 +02:00 committed by GitHub
parent befe132861
commit 8d10f1b26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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)
{