From 5ca3a7c2e76bc91356aaa1c6bc3d12bb2a3c6e9c Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 8 Mar 2021 16:39:43 +0000 Subject: shared_ptr -> unique_ptr in generators --- src/Generating/PrefabStructure.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/Generating/PrefabStructure.h') diff --git a/src/Generating/PrefabStructure.h b/src/Generating/PrefabStructure.h index e102b4863..8b489d866 100644 --- a/src/Generating/PrefabStructure.h +++ b/src/Generating/PrefabStructure.h @@ -27,7 +27,7 @@ public: int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ, cPlacedPieces && a_Pieces, - cTerrainHeightGenPtr a_HeightGen + cTerrainHeightGen & a_HeightGen ); protected: @@ -35,7 +35,7 @@ protected: cPlacedPieces m_Pieces; /** The height generator used when adjusting pieces onto the ground. */ - cTerrainHeightGenPtr m_HeightGen; + cTerrainHeightGen & m_HeightGen; // cGridStructGen::cStructure overrides: @@ -45,7 +45,3 @@ protected: Ground level is assumed to be represented by the first connector in the piece. */ void PlacePieceOnGround(cPlacedPiece & a_Piece); }; - - - - -- cgit v1.2.3