summaryrefslogtreecommitdiff
blob: 9d67085dd13a48cf89321b8f6c66216cd84977a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Make sure music_pending_song is defined before we try using it

http://bugs.gentoo.org/109272

--- pathological.py
+++ pathological.py
@@ -28,6 +28,7 @@
 colorblind = 0
 sound_on = 1
 music_on = 1
+music_pending_song = 0
 for arg in sys.argv[1:]:
 	if arg == '-s':
 		screenshot = 1
@@ -194,7 +195,7 @@
 	sound_on = sound_on ^ 1
 
 def toggle_music():
-	global music_on
+	global music_pending_song, music_on
 	music_on = music_on ^ 1
 	if music_on:
 		if music_pending_song: