mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 21:31:18 +00:00
Rename p3 in load_pmod to mod_list
This commit is contained in:
parent
b8fb6c81e1
commit
2c3caafcdf
1 changed files with 6 additions and 5 deletions
|
@ -1284,7 +1284,8 @@ static int load_pbag(SFData *sf, int size)
|
|||
/* preset modulator loader */
|
||||
static int load_pmod(SFData *sf, int size)
|
||||
{
|
||||
fluid_list_t *p, *p2, *p3;
|
||||
fluid_list_t *p, *p2;
|
||||
fluid_list_t *mod_list;
|
||||
SFMod *m;
|
||||
|
||||
p = sf->preset;
|
||||
|
@ -1297,9 +1298,9 @@ static int load_pmod(SFData *sf, int size)
|
|||
while(p2)
|
||||
{
|
||||
/* traverse this preset's zones */
|
||||
p3 = ((SFZone *)(p2->data))->mod;
|
||||
mod_list = ((SFZone *)(p2->data))->mod;
|
||||
|
||||
while(p3)
|
||||
while(mod_list)
|
||||
{
|
||||
/* load zone's modulators */
|
||||
if((size -= SF_MOD_SIZE) < 0)
|
||||
|
@ -1314,13 +1315,13 @@ static int load_pmod(SFData *sf, int size)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
p3->data = m;
|
||||
mod_list->data = m;
|
||||
READW(sf, m->src);
|
||||
READW(sf, m->dest);
|
||||
READW(sf, m->amount);
|
||||
READW(sf, m->amtsrc);
|
||||
READW(sf, m->trans);
|
||||
p3 = fluid_list_next(p3);
|
||||
mod_list = fluid_list_next(mod_list);
|
||||
}
|
||||
|
||||
p2 = fluid_list_next(p2);
|
||||
|
|
Loading…
Reference in a new issue