Skip to content

Commit

Permalink
Merged revision(s) 21755 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[Fix] OKT: Sample in last sample slot was never loaded.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.29@21759 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Sep 26, 2024
1 parent 2f29dd8 commit a9bae18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soundlib/Load_okt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ bool CSoundFile::ReadOKT(FileReader &file, ModLoadingFlags loadFlags)

// Read samples
size_t fileSmp = 0;
for(SAMPLEINDEX smp = 1; smp < m_nSamples; smp++)
for(SAMPLEINDEX smp = 1; smp <= m_nSamples; smp++)
{
if(fileSmp >= sampleChunks.size() || !(loadFlags & loadSampleData))
break;
Expand Down

0 comments on commit a9bae18

Please sign in to comment.