actually limit mic samples to 254

This commit is contained in:
zeromus 2019-03-17 23:38:34 -04:00
parent ac94244757
commit 175a471e5e
1 changed files with 3 additions and 1 deletions

View File

@ -261,7 +261,9 @@ bool LoadSamples(const char *name)
prefix.resize(maybe0-name);
//if found, it's a wildcard. load all those samples
for(int i=0;;i++)
//this is limited to 254 entries in order to prevent some surprises, because I was stupid and used a byte for the MicSampleSelection.
//I should probably change that. But it has to be limited somehow...
for(int i=0;i<255;i++)
{
char tmp[32];
sprintf(tmp,"%d",i);