mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 21:31:18 +00:00
Rename p in load_ibag to inst_list
This commit is contained in:
parent
93a74ff3bd
commit
dd037c725e
1 changed files with 5 additions and 5 deletions
|
@ -1673,7 +1673,7 @@ static int load_ihdr(SFData *sf, unsigned int size)
|
||||||
/* instrument bag loader */
|
/* instrument bag loader */
|
||||||
static int load_ibag(SFData *sf, int size)
|
static int load_ibag(SFData *sf, int size)
|
||||||
{
|
{
|
||||||
fluid_list_t *p;
|
fluid_list_t *inst_list;
|
||||||
fluid_list_t *zone_list;
|
fluid_list_t *zone_list;
|
||||||
SFZone *z, *pz = NULL;
|
SFZone *z, *pz = NULL;
|
||||||
unsigned short genndx, modndx, pgenndx = 0, pmodndx = 0;
|
unsigned short genndx, modndx, pgenndx = 0, pmodndx = 0;
|
||||||
|
@ -1685,12 +1685,12 @@ static int load_ibag(SFData *sf, int size)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
p = sf->inst;
|
inst_list = sf->inst;
|
||||||
|
|
||||||
while(p)
|
while(inst_list)
|
||||||
{
|
{
|
||||||
/* traverse through inst */
|
/* traverse through inst */
|
||||||
zone_list = ((SFInst *)(p->data))->zone;
|
zone_list = ((SFInst *)(inst_list->data))->zone;
|
||||||
|
|
||||||
while(zone_list)
|
while(zone_list)
|
||||||
{
|
{
|
||||||
|
@ -1750,7 +1750,7 @@ static int load_ibag(SFData *sf, int size)
|
||||||
zone_list = fluid_list_next(zone_list);
|
zone_list = fluid_list_next(zone_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
p = fluid_list_next(p);
|
inst_list = fluid_list_next(inst_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
size -= SF_BAG_SIZE;
|
size -= SF_BAG_SIZE;
|
||||||
|
|
Loading…
Reference in a new issue