aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-10 20:31:08 -0700
committerChris Robinson <[email protected]>2019-08-10 20:31:08 -0700
commitdca2365051e4697f5a1692252e9516398f746e0b (patch)
tree88eec18ab21dfdb08050f70127c1403387b8de45 /al
parente3f5bd37e632229fd7e9e849911578e58e7ccbb5 (diff)
Fix array access index
Diffstat (limited to 'al')
-rw-r--r--al/source.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/al/source.cpp b/al/source.cpp
index b5d0b383..98c52816 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -2403,7 +2403,7 @@ START_API_FUNC
{
ALdouble dval[1];
if(GetSourcedv(Source, context.get(), static_cast<SourceProp>(param), dval))
- *value = static_cast<ALfloat>(dval[1]);
+ *value = static_cast<ALfloat>(dval[0]);
}
}
END_API_FUNC