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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user