CAtomicAlpha: Use emplace_back where applicable

Simplifies the construction of the SBomb instances, while also
constructing in place.
This commit is contained in:
Lioncash 2019-10-03 00:36:29 -04:00
parent c882003d37
commit 18eb2b73b1
1 changed files with 1 additions and 2 deletions

View File

@ -34,8 +34,7 @@ CAtomicAlpha::CAtomicAlpha(TUniqueId uid, std::string_view name, const CEntityIn
, x690_bombModel(CStaticRes(cmdl, GetModelData()->GetScale())) { , x690_bombModel(CStaticRes(cmdl, GetModelData()->GetScale())) {
x668_bombProjectile.Token().Lock(); x668_bombProjectile.Token().Lock();
for (u32 i = 0; i < skBombCount; ++i) { for (u32 i = 0; i < skBombCount; ++i) {
x6dc_bombLocators.push_back( x6dc_bombLocators.emplace_back(skBombLocators[i], pas::ELocomotionType(u32(pas::ELocomotionType::Internal10) + i));
SBomb(skBombLocators[i], pas::ELocomotionType(u32(pas::ELocomotionType::Internal10) + i)));
} }
} }