From 388e5f2e7f9ca48fa3199966b9b37007b083ef68 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 1 Apr 2020 23:08:08 -0400 Subject: [PATCH] CRidley: Make use of std::make_unique where applicable --- Runtime/MP1/World/CRidley.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/MP1/World/CRidley.cpp b/Runtime/MP1/World/CRidley.cpp index f4011ffe0..7ddb8270c 100644 --- a/Runtime/MP1/World/CRidley.cpp +++ b/Runtime/MP1/World/CRidley.cpp @@ -303,8 +303,8 @@ CRidley::CRidley(TUniqueId uid, std::string_view name, const CEntityInfo& info, , xc3c_(x568_data.x1a0_, x568_data.x1a4_) , xc8c_(GetContactDamage()) , xcd0_(g_SimplePool->GetObj({SBIG('ELSC'), x568_data.x3f0_})) -, xce0_(new CParticleElectric(xcd0_)) -, xd10_(new CProjectedShadow(128, 128, true)) { +, xce0_(std::make_unique(xcd0_)) +, xd10_(std::make_unique(128, 128, true)) { xe7_30_doTargetDistanceTest = true; xb68_.Token().Lock(); xc14_.Token().Lock();