From 18eb2b73b18e743439b5fb55642855c2c04a42e1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 3 Oct 2019 00:36:29 -0400 Subject: [PATCH] CAtomicAlpha: Use emplace_back where applicable Simplifies the construction of the SBomb instances, while also constructing in place. --- Runtime/MP1/World/CAtomicAlpha.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Runtime/MP1/World/CAtomicAlpha.cpp b/Runtime/MP1/World/CAtomicAlpha.cpp index 6332e60eb..d3af41292 100644 --- a/Runtime/MP1/World/CAtomicAlpha.cpp +++ b/Runtime/MP1/World/CAtomicAlpha.cpp @@ -34,8 +34,7 @@ CAtomicAlpha::CAtomicAlpha(TUniqueId uid, std::string_view name, const CEntityIn , x690_bombModel(CStaticRes(cmdl, GetModelData()->GetScale())) { x668_bombProjectile.Token().Lock(); for (u32 i = 0; i < skBombCount; ++i) { - x6dc_bombLocators.push_back( - SBomb(skBombLocators[i], pas::ELocomotionType(u32(pas::ELocomotionType::Internal10) + i))); + x6dc_bombLocators.emplace_back(skBombLocators[i], pas::ELocomotionType(u32(pas::ELocomotionType::Internal10) + i)); } }