From 418e9144d5059212693c3f848ecf095dbb0f690a Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 27 Apr 2024 23:15:55 +0300 Subject: fix default settings getter --- src/sliceitoff/sfx/sfx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sliceitoff/sfx/sfx.py') 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): -- cgit v1.2.3