Fix audio enable/disable checkbox

This commit is contained in:
Eduardo Bart 2013-01-17 08:50:40 -02:00
parent 2fd8d4e580
commit 95593964bb
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ function Options.setOption(key, value)
modules.game_interface.updateStretchShrink()
end)
elseif key == 'enableMusic' then
g_sounds.enableAudio(value)
g_sounds.setAudioEnabled(value)
elseif key == 'showLeftPanel' then
addEvent(function()
modules.game_interface.getLeftPanel():setOn(value)