2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-06-03 16:41:20 +00:00

CParticleSwoosh: Eliminate variable shadowing

This commit is contained in:
Lioncash 2020-04-14 03:31:31 -04:00
parent 480d27e68c
commit 6fbf6734c2

View File

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