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
1 changed files with 1 additions and 1 deletions

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);