diff options
-rw-r--r-- | Alc/midi/sf2load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c index 73b5d9d4..169a5189 100644 --- a/Alc/midi/sf2load.c +++ b/Alc/midi/sf2load.c @@ -1201,7 +1201,7 @@ ALboolean loadSf2(Reader *stream, ALsoundfont *soundfont, ALCcontext *context) READ(stream, buf, todo); for(i = 0;i < todo;i++) - ptr[i] = buf[i^1]; + ptr[total+i] = buf[i^1]; total += todo; } |