Use more .getPattern()
This commit is contained in:
parent
27a1914924
commit
18c5d80a09
|
@ -523,7 +523,7 @@ void TFMParsePattern(struct TFMParsePatternInfo info) {
|
|||
for (int i=0;i<6;i++) {
|
||||
int lastPatNum=info.ds->subsong[0]->orders.ord[i][info.ds->subsong[0]->ordersLen - 1];
|
||||
DivPattern* newPat=info.ds->subsong[0]->pat[i].getPattern(info.maxPat,true);
|
||||
DivPattern* lastPat=info.ds->subsong[0]->pat[i].data[lastPatNum];
|
||||
DivPattern* lastPat=info.ds->subsong[0]->pat[i].getPattern(lastPatNum, false);
|
||||
lastPat->copyOn(newPat);
|
||||
|
||||
info.ds->subsong[0]->orders.ord[i][info.ds->subsong[0]->ordersLen - 1] = info.maxPat;
|
||||
|
@ -534,7 +534,7 @@ void TFMParsePattern(struct TFMParsePatternInfo info) {
|
|||
} else {
|
||||
for (int i=0;i<6;i++) {
|
||||
int lastPatNum=info.ds->subsong[0]->orders.ord[i][info.ds->subsong[0]->ordersLen - 1];
|
||||
DivPattern* lastPat=info.ds->subsong[0]->pat[i].data[lastPatNum];
|
||||
DivPattern* lastPat=info.ds->subsong[0]->pat[i].getPattern(lastPatNum, false);
|
||||
lastPat->data[info.patLens[lastPatNum]-1][4+(usedEffectsCol*4)] = 0x0B;
|
||||
lastPat->data[info.patLens[lastPatNum]-1][5+(usedEffectsCol*4)] = info.loopPos;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue