2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-22 01:39:13 +00:00

Runtime: Resolve -Wrange-loop-analysis warnings (part 2)

This commit is contained in:
2020-09-18 17:04:50 -04:00
parent 834fe39074
commit 76de1541f2
18 changed files with 47 additions and 47 deletions

View File

@@ -200,7 +200,7 @@ void CPlayerGun::InitBombData() {
}
void CPlayerGun::InitMuzzleData() {
for (const auto muzzleID : g_tweakGunRes->xa4_auxMuzzle) {
for (const auto& muzzleID : g_tweakGunRes->xa4_auxMuzzle) {
x7c0_auxMuzzleEffects.push_back(g_SimplePool->GetObj(SObjectTag{FOURCC('PART'), muzzleID}));
x800_auxMuzzleGenerators.emplace_back(std::make_unique<CElementGen>(x7c0_auxMuzzleEffects.back()));
x800_auxMuzzleGenerators.back()->SetParticleEmission(false);