From 0cbfc6d16989d811ab617a4d5f9cbe41aa0e8ccf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 16 Mar 2020 19:12:52 -0400 Subject: [PATCH] CGrappleArm: Move skDependencyNames into BuildSuitDependencyList() Same behavior, but narrows the visible scope of the array. --- Runtime/Weapon/CGrappleArm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Weapon/CGrappleArm.cpp b/Runtime/Weapon/CGrappleArm.cpp index a899c7384..6bf96a8b5 100644 --- a/Runtime/Weapon/CGrappleArm.cpp +++ b/Runtime/Weapon/CGrappleArm.cpp @@ -63,13 +63,13 @@ void CGrappleArm::FillTokenVector(const std::vector& 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 dgrp = g_SimplePool->GetObj(name); std::vector& depsOut = x19c_suitDeps.emplace_back(); FillTokenVector(dgrp->GetObjectTagVector(), depsOut);