diff options
Diffstat (limited to 'src/script/lua_api/l_sound.cpp')
-rw-r--r-- | src/script/lua_api/l_sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_sound.cpp b/src/script/lua_api/l_sound.cpp index e7d517ce0..b86eda53e 100644 --- a/src/script/lua_api/l_sound.cpp +++ b/src/script/lua_api/l_sound.cpp @@ -28,7 +28,7 @@ int ModApiSound::l_sound_play(lua_State *L) { SimpleSoundSpec spec; read_soundspec(L, 1, spec); - bool looped = lua_toboolean(L, 2); + bool looped = readParam<bool>(L, 2); s32 handle = getGuiEngine(L)->playSound(spec, looped); |