aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index cb2181da..d809406d 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -872,7 +872,7 @@ inline ALint GetChannelIndex(const enum Channel (&names)[MAX_OUTPUT_CHANNELS], e
{
auto iter = std::find(std::begin(names), std::end(names), chan);
if(iter == std::end(names)) return -1;
- return std::distance(names, iter);
+ return std::distance(std::begin(names), iter);
}
/**
* GetChannelIdxByName