diff --git a/Source/Contents/Effects/Skills/StarEffect.cpp b/Source/Contents/Effects/Skills/StarEffect.cpp index 369ba1658..32ae94b61 100644 --- a/Source/Contents/Effects/Skills/StarEffect.cpp +++ b/Source/Contents/Effects/Skills/StarEffect.cpp @@ -126,7 +126,8 @@ void CStarEffect::UpdateParticle(CParticle* particle) { } StarParticleState& state = *reinterpret_cast(&particle->animationParameter); - if (particle->elapsedFrames % 14 == 0) { + const int frame = particle->elapsedFrames; + if (frame % 14 == 0) { int texture = static_cast(state.texture) + 1; if (texture > 6) { texture = 1; @@ -135,7 +136,6 @@ void CStarEffect::UpdateParticle(CParticle* particle) { particle->SetTexture(FormatOwnedString("effect\\star%02d.bmp", texture).c_str()); } - const int frame = particle->elapsedFrames; int alpha = particle->alpha; if (frame < 80) { alpha += 3;