Showing the changes to interface/src/ParticleSystem.cpp (1 of 4 files). Show all
Unified · Split
| @@ -162,11 +162,11 @@ void ParticleSystem::killParticle(int p) { · 161 unmodified lines | ||
| 162 | 162 | void ParticleSystem::setParticleAttributes(int emitterIndex, ParticleAttributes attributes) { |
| 163 | 163 | |
| 164 | 164 | for (int lifeStage = 0; lifeStage < NUM_PARTICLE_LIFE_STAGES; lifeStage ++ ) { |
| 165 | − setParticleAttributes(emitterIndex, lifeStage, attributes); | |
| 165 | + setParticleAttributes(emitterIndex, (ParticleLifeStage)lifeStage, attributes); | |
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | −void ParticleSystem::setParticleAttributes(int emitterIndex, int lifeStage, ParticleAttributes attributes) { | |
| 169 | +void ParticleSystem::setParticleAttributes(int emitterIndex, ParticleLifeStage lifeStage, ParticleAttributes attributes) { | |
| 170 | 170 | |
| 171 | 171 | ParticleAttributes * a = &_emitter[emitterIndex].particleAttributes[lifeStage]; |
| 172 | 172 | |