diff options
author | Chris Robinson <[email protected]> | 2023-12-15 23:34:06 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-15 23:34:06 -0800 |
commit | 4fb33be2b4cb548b4116ee4124ba3d8d2bcecb82 (patch) | |
tree | 43f58466ec95b9bb27bb86b361714f4d58c45ab8 /alc | |
parent | bfd9323d4a1253dc32be5720e769d22b40712135 (diff) |
Fix searching the channel type list
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alc.cpp | 2 |
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()) |