From 93dd28988dff20fc5caa32ea55850bb7feda72d1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 Apr 2020 22:02:22 -0400 Subject: [PATCH] CGameArea: Make use of std::make_unique where applicable --- Runtime/World/CGameArea.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/World/CGameArea.cpp b/Runtime/World/CGameArea.cpp index 674eeda5b..050adf9f7 100644 --- a/Runtime/World/CGameArea.cpp +++ b/Runtime/World/CGameArea.cpp @@ -687,7 +687,7 @@ bool CGameArea::StartStreamingMainArea() { case EPhase::LoadHeader: { x110_mreaSecBufs.reserve(3); AllocNewAreaData(0, 96); - x12c_postConstructed.reset(new CPostConstructed()); + x12c_postConstructed = std::make_unique(); xf4_phase = EPhase::LoadSecSizes; break; } @@ -998,8 +998,8 @@ void CGameArea::PostConstructArea() { ++secIt; } - x12c_postConstructed->x10c0_areaObjs.reset(new CAreaObjectList(x4_selfIdx)); - x12c_postConstructed->x10c4_areaFog.reset(new CAreaFog()); + x12c_postConstructed->x10c0_areaObjs = std::make_unique(x4_selfIdx); + x12c_postConstructed->x10c4_areaFog = std::make_unique(); /* URDE addition: preemptively fill in area models so shaders may be polled for completion */ if (!x12c_postConstructed->x1108_25_modelsConstructed)