diff options
author | Chris Robinson <[email protected]> | 2016-04-16 01:24:37 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-04-16 01:24:37 -0700 |
commit | 325245f4b80ce00250517af5d83206ffabbd0e40 (patch) | |
tree | 3ec0c1e4cbd54c1b32faaeb95f07d9d2270bf2c1 /Alc | |
parent | a6c70992b01b168d561c448fa235a86c9697b6ef (diff) |
Silence possible out-of-bounds warning again
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/panning.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/panning.c b/Alc/panning.c index 0e04f074..a9774a01 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -649,7 +649,7 @@ static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALuin if(GetConfigValueBool(devname, "decoder", "distance-comp", 1)) decflags |= BFDF_DistanceComp; - for(i = 0;i < count;i++) + for(i = 0;i < count && i < MAX_OUTPUT_CHANNELS;i++) device->Dry.ChannelName[i] = Aux0 + i; for(;i < MAX_OUTPUT_CHANNELS;i++) device->Dry.ChannelName[i] = InvalidChannel; |