aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
Diffstat (limited to 'alc')
-rw-r--r--alc/alc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 93e28845..03d36de7 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1084,7 +1084,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
};
const ALCchar *fmt{chanopt->c_str()};
- auto iter = std::find_if(chanlist.end(), chanlist.end(),
+ auto iter = std::find_if(chanlist.begin(), chanlist.end(),
[fmt](const ChannelMap &entry) -> bool
{ return al::strcasecmp(entry.name, fmt) == 0; });
if(iter == chanlist.end())