2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-12 09:25:53 +00:00

CThardus: std::move std::vector instance in constructor

Same behavior, no reallocations.
This commit is contained in:
Lioncash 2020-04-06 08:41:15 -04:00
parent 6e7e761126
commit 0a0ac955b5

View File

@ -111,7 +111,7 @@ CThardus::CThardus(TUniqueId uid, std::string_view name, const CEntityInfo& info
gens.push_back(particle8);
gens.push_back(particle9);
GetModelData()->GetAnimationData()->GetParticleDB().CacheParticleDesc(
CCharacterInfo::CParticleResData(gens, {}, {}, {}));
CCharacterInfo::CParticleResData(std::move(gens), {}, {}, {}));
x798_.reserve(6);
x7a8_timers.reserve(16);
UpdateThermalFrozenState(true);