CElementGen: Collapse loop into a ranged-for loop

Same behavior, nicer syntax.
This commit is contained in:
Lioncash 2020-04-14 16:08:17 -04:00
parent c14721611b
commit 384efebf55
1 changed files with 1 additions and 2 deletions

View File

@ -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;