Browse Source

properly restore rom bank in all music isr cases

Thomas B 2 weeks ago
parent
commit
2a1cf3f67a
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/sound.c

+ 3
- 3
src/sound.c View File

@@ -172,7 +172,7 @@ void snd_play(void) NONBANKED {
172 172
                     if (music->repeat != MUSIC_NO_REPEAT) {
173 173
                         off = music->repeat;
174 174
                         snd_play();
175
-                        return;
175
+                        goto end;
176 176
                     } else {
177 177
                         music = NULL;
178 178
                         goto end;
@@ -187,7 +187,7 @@ void snd_play(void) NONBANKED {
187 187
                     if (music->repeat != MUSIC_NO_REPEAT) {
188 188
                         off = music->repeat;
189 189
                         snd_play();
190
-                        return;
190
+                        goto end;
191 191
                     } else {
192 192
                         music = NULL;
193 193
                         goto end;
@@ -202,7 +202,7 @@ void snd_play(void) NONBANKED {
202 202
                     if (music->repeat != MUSIC_NO_REPEAT) {
203 203
                         off = music->repeat;
204 204
                         snd_play();
205
-                        return;
205
+                        goto end;
206 206
                     } else {
207 207
                         music = NULL;
208 208
                         goto end;

Loading…
Cancel
Save