Prefix VS Postfix increment

This commit is contained in:
Ittobaal@gmail.com
2011-02-09 20:06:15 +00:00
parent 2866db0229
commit c6849d35d5
2 changed files with 6 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ void JParticleSystem::Update(float dt)
mEffects.erase(curr++);
}
else
curr++;
++curr;
}
}
@@ -74,7 +74,7 @@ void JParticleSystem::Render()
effect = *curr;
effect->Render();
curr++;
++curr;
}
}
}
@@ -92,7 +92,7 @@ void JParticleSystem::StartEffect(JParticleEffect* effect)
effect->Start();
return;
}
curr++;
++curr;
}
mEffects.push_back(effect);
effect->SetParticleSystem(this);
@@ -111,7 +111,7 @@ void JParticleSystem::StopAllEffects()
{
effect = *curr;
effect->Stop();
curr++;
++curr;
}
}