aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/lua_api/l_sound.cpp')
-rw-r--r--src/script/lua_api/l_sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_sound.cpp b/src/script/lua_api/l_sound.cpp
index b86eda53e..934b4a07e 100644
--- a/src/script/lua_api/l_sound.cpp
+++ b/src/script/lua_api/l_sound.cpp
@@ -28,9 +28,9 @@ int ModApiSound::l_sound_play(lua_State *L)
{
SimpleSoundSpec spec;
read_soundspec(L, 1, spec);
- bool looped = readParam<bool>(L, 2);
+ spec.loop = readParam<bool>(L, 2);
- s32 handle = getGuiEngine(L)->playSound(spec, looped);
+ s32 handle = getGuiEngine(L)->playSound(spec);
lua_pushinteger(L, handle);