mirror of https://github.com/AxioDL/metaforce.git
CElementGen: Collapse loop into a ranged-for loop
Same behavior, nicer syntax.
This commit is contained in:
parent
c14721611b
commit
384efebf55
|
@ -1136,8 +1136,7 @@ void CElementGen::RenderLines() {
|
|||
|
||||
m_lineRenderer->Reset();
|
||||
|
||||
for (size_t i = 0; i < x30_particles.size(); ++i) {
|
||||
CParticle& particle = x30_particles[i];
|
||||
for (auto& particle : x30_particles) {
|
||||
g_currentParticle = &particle;
|
||||
|
||||
int partFrame = x74_curFrame - particle.x28_startFrame;
|
||||
|
|
Loading…
Reference in New Issue