mirror of
https://github.com/phoboslab/wipeout-rewrite
synced 2024-12-26 09:59:04 +01:00
Fix music decoder playing garbage; close #8
This commit is contained in:
parent
f29463132b
commit
b484e85e7e
1 changed files with 2 additions and 1 deletions
|
@ -285,8 +285,9 @@ void sfx_music_open(char *path) {
|
|||
}
|
||||
|
||||
void sfx_music_play(uint32_t index) {
|
||||
error_if(index > len(def.music), "Invalid music index");
|
||||
error_if(index >= len(def.music), "Invalid music index");
|
||||
if (index == music->track_index) {
|
||||
sfx_music_rewind();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue