diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sliceitoff/settings/settings.py | 2 | ||||
-rw-r--r-- | src/sliceitoff/sfx/sfx.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sliceitoff/settings/settings.py b/src/sliceitoff/settings/settings.py index 7ecfbf3..992971b 100644 --- a/src/sliceitoff/settings/settings.py +++ b/src/sliceitoff/settings/settings.py @@ -69,7 +69,7 @@ class Settings: v = self.get_value(option) if v: return v - return [x[1] for x in DEFAULT_SETTINGS if x[0]==option][1] + return [x[1] for x in DEFAULT_SETTINGS if x[0]==option][0] def put_value(self, option, value): """ Puts single value with option name """ diff --git a/src/sliceitoff/sfx/sfx.py b/src/sliceitoff/sfx/sfx.py index a72df0b..362d3ed 100644 --- a/src/sliceitoff/sfx/sfx.py +++ b/src/sliceitoff/sfx/sfx.py @@ -52,7 +52,7 @@ class Sfx: self.music_volume += 1 self.music_volume %= 11 settings.replace_value("music_volume", self.music_volume) - if self.bgm: + if self.initialized and self.bgm: self.sound[self.bgm].set_volume(self.music_volume / 10) def play(self, sample): |