another big-endian fix!
This commit is contained in:
parent
4d057d3328
commit
24e3dec84f
|
@ -59,7 +59,9 @@ DivDataErrors DivWavetable::readWaveData(SafeReader& reader, short version) {
|
|||
|
||||
if (len>256 || min!=0 || max>255) return DIV_DATA_INVALID_DATA;
|
||||
|
||||
reader.read(data,4*len);
|
||||
for (int i=0; i<len; i++) {
|
||||
data[i]=reader.readI();
|
||||
}
|
||||
|
||||
return DIV_DATA_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue