core/menusystem: fix a crash when trying to get sound volume

This commit is contained in:
Kazhnuz 2019-02-15 18:33:38 +01:00
parent 831531b3fa
commit 592e92ea6d

View file

@ -158,7 +158,7 @@ end
function Menu:playSelectSound()
if self.sound.active == true then
self.sound.asset:setVolume(game.options.data.audio.sfx / 100)
self.sound.asset:setVolume(core.options.data.audio.sfx / 100)
love.audio.play( self.sound.asset )
end
end