Skip to content

Commit

Permalink
libmodplug/load_mt2.c: fix MSVC C4090 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Dec 22, 2024
1 parent 0de8a7e commit 0a935e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libmodplug/load_mt2.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ BOOL CSoundFile_ReadMT2(CSoundFile *_this, LPCBYTE lpStream, DWORD dwMemLength)
}
}
// Load Instruments
SDL_memset(InstrMap, 0, sizeof(InstrMap));
_this->m_nInstruments = (pfh->wInstruments < MAX_INSTRUMENTS) ? pfh->wInstruments : MAX_INSTRUMENTS-1;
for (j=0; j< 255; j++) InstrMap[j]=NULL;
for (j=1; j<=255; j++)
{
const MT2INSTRUMENT *pmi;
Expand Down Expand Up @@ -493,8 +493,8 @@ BOOL CSoundFile_ReadMT2(CSoundFile *_this, LPCBYTE lpStream, DWORD dwMemLength)
dwMemPos += 36;
}
}
SDL_memset(SampleMap, 0, sizeof(SampleMap));
_this->m_nSamples = (pfh->wSamples < MAX_SAMPLES) ? pfh->wSamples : MAX_SAMPLES-1;
for (j=0; j< 256; j++) SampleMap[j]=NULL;
for (j=1; j<=256; j++)
{
const MT2SAMPLE *pms;
Expand Down

0 comments on commit 0a935e0

Please sign in to comment.