mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-10 18:12:46 +00:00
Fix VGZ sometimes causing SRB2 to crash by not playing the song early in I_LoadSong
This commit is contained in:
parent
aab378fe1a
commit
26a2677863
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…
Add table
Reference in a new issue