From e7e73e8658d8d401e55d3723a0c90d7af3b6022b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 Apr 2020 03:48:28 -0400 Subject: [PATCH] CPlayer: Make use of std::make_unique for x76c_cameraBob Same behavior, but more consistent with other usages of std::make_unique. --- Runtime/World/CPlayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/World/CPlayer.cpp b/Runtime/World/CPlayer.cpp index cdc104b0a..8ff99823e 100644 --- a/Runtime/World/CPlayer.cpp +++ b/Runtime/World/CPlayer.cpp @@ -225,9 +225,9 @@ CPlayer::CPlayer(TUniqueId uid, const zeus::CTransform& xf, const zeus::CAABox& x490_gun = std::make_unique(uid); x49c_gunHolsterRemTime = g_tweakPlayerGun->GetGunNotFiringTime(); x4a0_failsafeTest = std::make_unique(); - x76c_cameraBob.reset(new CPlayerCameraBob(CPlayerCameraBob::ECameraBobType::One, - CPlayerCameraBob::GetCameraBobExtent(), - CPlayerCameraBob::GetCameraBobPeriod())); + x76c_cameraBob = + std::make_unique(CPlayerCameraBob::ECameraBobType::One, CPlayerCameraBob::GetCameraBobExtent(), + CPlayerCameraBob::GetCameraBobPeriod()); x9c4_26_ = true; x9c4_27_canEnterMorphBall = true; x9c4_28_canLeaveMorphBall = true;