1
0

Replaced cFinishGenPtr with std::make_shared

This commit is contained in:
STRWarrior 2015-03-01 20:06:44 +01:00
parent 0394acfc0c
commit e63f9bdc1a

View File

@ -619,7 +619,7 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
else if (NoCaseCompare(*itr, "Vines") == 0)
{
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)
{