Fix section continuation when only one bank exists

This commit is contained in:
ISSOtm
2020-03-19 23:07:07 +01:00
parent 136446fccb
commit 5bca1172ff

View File

@@ -117,6 +117,9 @@ static struct Section *getSection(char const *pzName, enum SectionType type,
pzName, org, startaddr[type], endaddr(type));
}
if (nbbanks(type) == 1)
bank = bankranges[type][0];
struct Section *pSect = out_FindSectionByName(pzName);
if (pSect) {
@@ -137,9 +140,6 @@ static struct Section *getSection(char const *pzName, enum SectionType type,
if (pSect->pzName == NULL)
fatalerror("Not enough memory for sectionname");
if (nbbanks(type) == 1)
bank = bankranges[type][0];
pSect->nType = type;
pSect->nPC = 0;
pSect->nOrg = org;