shared_ptr -> unique_ptr in generators
This commit is contained in:
@@ -582,10 +582,7 @@ protected:
|
||||
|
||||
|
||||
|
||||
cTerrainCompositionGenPtr CreateCompoGenBiomal(int a_Seed)
|
||||
std::unique_ptr<cTerrainCompositionGen> CreateCompoGenBiomal(int a_Seed)
|
||||
{
|
||||
return std::make_shared<cCompoGenBiomal>(a_Seed);
|
||||
return std::make_unique<cCompoGenBiomal>(a_Seed);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user