Skip to content

Commit 4bfc58b

Browse files
AliceLRsezero
authored andcommitted
Fix incorrect loading of Oktalyzer order list.
Konstanty#53
1 parent ab87bbb commit 4bfc58b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/load_okt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ BOOL CSoundFile::ReadOKT(const BYTE *lpStream, DWORD dwMemLength)
104104
{
105105
UINT orderlen = norders;
106106
if (orderlen >= MAX_ORDERS) orderlen = MAX_ORDERS-1;
107-
for (UINT i=0; i<orderlen; i++) Order[i] = lpStream[dwMemPos+10+i];
107+
for (UINT i=0; i<orderlen; i++) Order[i] = lpStream[dwMemPos+8+i];
108108
for (UINT j=orderlen; j>1; j--) { if (Order[j-1]) break; Order[j-1] = 0xFF; }
109109
dwMemPos += bswapBE32(*((DWORD *)(lpStream + dwMemPos + 4))) + 8;
110110
}

0 commit comments

Comments
 (0)