mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Fix VGZ sometimes causing SRB2 to crash by not playing the song early in I_LoadSong
This commit is contained in:
parent
a34be0e370
commit
f626b9f4d9
1 changed files with 0 additions and 3 deletions
|
@ -1162,9 +1162,6 @@ boolean I_LoadSong(char *data, size_t len)
|
||||||
// Run GME on new data
|
// Run GME on new data
|
||||||
if (!gme_open_data(inflatedData, inflatedLen, &gme, 44100))
|
if (!gme_open_data(inflatedData, inflatedLen, &gme, 44100))
|
||||||
{
|
{
|
||||||
gme_start_track(gme, 0);
|
|
||||||
current_track = 0;
|
|
||||||
Mix_HookMusic(mix_gme, gme);
|
|
||||||
Z_Free(inflatedData); // GME supposedly makes a copy for itself, so we don't need this lying around
|
Z_Free(inflatedData); // GME supposedly makes a copy for itself, so we don't need this lying around
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue