CRidley: Collapse for loop into ranged for loop

Same behavior, no unnecessary induction variable.
This commit is contained in:
Lioncash 2020-05-10 19:41:11 -04:00
parent 98ce18385a
commit c0a0a35f01
1 changed files with 2 additions and 2 deletions

View File

@ -294,8 +294,8 @@ CRidley::CRidley(TUniqueId uid, std::string_view name, const CEntityInfo& info,
xce0_->SetParticleEmission(false);
const auto& animData = GetModelData()->GetAnimationData();
for (size_t i = 0; i < skWingBones.size(); ++i) {
xce4_wingBoneIds.push_back(animData->GetLocatorSegId(skWingBones[i]));
for (const auto& wingBone : skWingBones) {
xce4_wingBoneIds.push_back(animData->GetLocatorSegId(wingBone));
}
xae4_ = GetModelData()->GetScale().x() *