From ec501903d5ff6516c771e49687c645bce6f54c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Sjo=CC=88berg?= Date: Wed, 11 Nov 2020 22:17:10 +0100 Subject: [PATCH] Correct the argument indices for Source:setCone --- src/api/l_audio_source.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/l_audio_source.c b/src/api/l_audio_source.c index 1ae8f4a4..8d519bb4 100644 --- a/src/api/l_audio_source.c +++ b/src/api/l_audio_source.c @@ -172,9 +172,9 @@ static int l_lovrSourceSeek(lua_State* L) { static int l_lovrSourceSetCone(lua_State* L) { Source* source = luax_checktype(L, 1, Source); - float innerAngle = luax_checkfloat(L, 1); - float outerAngle = luax_checkfloat(L, 2); - float outerGain = luax_checkfloat(L, 3); + float innerAngle = luax_checkfloat(L, 2); + float outerAngle = luax_checkfloat(L, 3); + float outerGain = luax_checkfloat(L, 4); lovrSourceSetCone(source, innerAngle, outerAngle, outerGain); return 0; }