CGrappleArm: Move skDependencyNames into BuildSuitDependencyList()

Same behavior, but narrows the visible scope of the array.
This commit is contained in:
Lioncash 2020-03-16 19:12:52 -04:00
parent d0d6210ccd
commit 0cbfc6d169
1 changed files with 2 additions and 2 deletions

View File

@ -63,13 +63,13 @@ void CGrappleArm::FillTokenVector(const std::vector<SObjectTag>& tags, std::vect
}
void CGrappleArm::BuildSuitDependencyList() {
static constexpr std::array skDependencyNames{
static constexpr std::array dependencyNames{
"PowerSuit_DGRP"sv, "GravitySuit_DGRP"sv, "VariaSuit_DGRP"sv, "PhazonSuit_DGRP"sv,
"FusionSuit_DGRP"sv, "FusionSuitG_DGRP"sv, "FusionSuitV_DGRP"sv, "FusionSuitP_DGRP"sv,
};
x184_grappleArm.Lock();
for (const auto& name : skDependencyNames) {
for (const auto& name : dependencyNames) {
TLockedToken<CDependencyGroup> dgrp = g_SimplePool->GetObj(name);
std::vector<CToken>& depsOut = x19c_suitDeps.emplace_back();
FillTokenVector(dgrp->GetObjectTagVector(), depsOut);