diff --git a/Game/GameKeyPressed.lua b/Game/GameKeyPressed.lua index 22b1891..3691f34 100644 --- a/Game/GameKeyPressed.lua +++ b/Game/GameKeyPressed.lua @@ -24,9 +24,9 @@ function GameKeyPressed(key) end if key == "m" then - MUTED = not MUTED + _G.MUTED = not _G.MUTED -- Need to set the battle music to mute - if MUTED then + if _G.MUTED then musicBattle:setVolume(0) else musicBattle:setVolume(0.5)