diff options
author | Viljami Ilola <+@hix.fi> | 2024-04-27 23:15:55 +0300 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-04-27 23:15:55 +0300 |
commit | 418e9144d5059212693c3f848ecf095dbb0f690a (patch) | |
tree | 70fd12178fa2c9d64ed272c0621e9e63257fe44a /src/sliceitoff/sfx/sfx.py | |
parent | 1727b104e6f301d3a3f007f736227d592d8ebbef (diff) |
fix default settings getterv0.4b2
Diffstat (limited to 'src/sliceitoff/sfx/sfx.py')
-rw-r--r-- | src/sliceitoff/sfx/sfx.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |