Skip to content

Commit

Permalink
fixup! Port [volume] to Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 24, 2017
1 parent 591cb3b commit 017f0cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/lua_audio.cpp
Expand Up @@ -101,7 +101,7 @@ static int impl_music_set(lua_State* L) {
return 0;
}
const char* m = luaL_checkstring(L, 2);
modify_float_attrib_check_range("volume", sound::set_music_volume(value * preferences::music_volume() / 100.0f), 0.0, 100.0)
modify_float_attrib_check_range("volume", sound::set_music_volume(value * preferences::music_volume() / 100.0f), 0.0, 100.0);
// TODO: Set "current" and "current_i"
return 0;
}
Expand Down

0 comments on commit 017f0cd

Please sign in to comment.