CParticleSwoosh: Eliminate variable shadowing

This commit is contained in:
Lioncash 2020-04-14 03:31:31 -04:00
parent 480d27e68c
commit 6fbf6734c2
1 changed files with 4 additions and 3 deletions

View File

@ -28,10 +28,11 @@ CParticleSwoosh::CParticleSwoosh(const TToken<CSwooshDescription>& desc, int len
, x1d1_24_constantUv(false) { , x1d1_24_constantUv(false) {
++g_ParticleSystemAliveCount; ++g_ParticleSystemAliveCount;
if (leng > 0) if (leng > 0) {
x1b4_LENG = leng; x1b4_LENG = leng;
else if (CIntElement* leng = x1c_desc->x10_LENG.get()) } else if (CIntElement* lengElement = x1c_desc->x10_LENG.get()) {
leng->GetValue(0, x1b4_LENG); lengElement->GetValue(0, x1b4_LENG);
}
x1b4_LENG += 1; x1b4_LENG += 1;
if (CIntElement* side = x1c_desc->x18_SIDE.get()) if (CIntElement* side = x1c_desc->x18_SIDE.get())