Replaced cFinishGenPtr with std::make_shared
This commit is contained in:
parent
0394acfc0c
commit
e63f9bdc1a
@ -619,7 +619,7 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
|
|||||||
else if (NoCaseCompare(*itr, "Vines") == 0)
|
else if (NoCaseCompare(*itr, "Vines") == 0)
|
||||||
{
|
{
|
||||||
int Level = a_IniFile.GetValueSetI("Generator", "VinesLevel", 40);
|
int Level = a_IniFile.GetValueSetI("Generator", "VinesLevel", 40);
|
||||||
m_FinishGens.push_back(cFinishGenPtr(new cFinishGenVines(Seed, Level)));
|
m_FinishGens.push_back(std::make_shared<cFinishGenVines>(Seed, Level));
|
||||||
}
|
}
|
||||||
else if (NoCaseCompare(*itr, "WaterLakes") == 0)
|
else if (NoCaseCompare(*itr, "WaterLakes") == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user