This commit is contained in:
c0ntrol
2016-05-25 19:33:59 +02:00
parent d19774f0e7
commit 46b9b50e98
9 changed files with 189 additions and 100 deletions

View File

@@ -1771,7 +1771,7 @@ int sample_set_looptype(int s1, int looptype)
sample_info *sample = sample_get(s1);
if(!sample) return -1;
if (looptype == 3 || looptype == 0 || looptype == 1 || looptype == 2) {
if( looptype >= 0 && looptype < 5 ) {
sample->looptype = looptype;
return 1;
}