Skip to content

Commit

Permalink
[Fix] OKT: Sample in last sample slot was never loaded.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@21755 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Sep 26, 2024
1 parent 8cde60b commit c5dc2fe
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 @@ -446,7 +446,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 c5dc2fe

Please sign in to comment.