giga-refactor, part 16
fix ds.chans not being set when loading old .fur
This commit is contained in:
parent
8f7fd0a229
commit
5032394507
1 changed files with 2 additions and 0 deletions
|
|
@ -1232,6 +1232,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len, int variantID) {
|
|||
}
|
||||
|
||||
ds.initDefaultSystemChans();
|
||||
ds.chans=tchans;
|
||||
|
||||
ds.name=reader.readString();
|
||||
ds.author=reader.readString();
|
||||
|
|
@ -1819,6 +1820,7 @@ bool DivEngine::loadFur(unsigned char* file, size_t len, int variantID) {
|
|||
return false;
|
||||
}
|
||||
|
||||
logW("ds.chans: %d",ds.chans);
|
||||
if (!subSong->readData(reader,ds.version,ds.chans)) {
|
||||
logE("%d: invalid subsong data!",i);
|
||||
lastError="invalid subsong data!";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue