Fix the order audio samples are removed so that they actually are removed properly.
Patch by jovie1024. This closes ticket:1391 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9106 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
467730a50e
commit
4f963349cc
|
@ -543,8 +543,8 @@ void audio_Update()
|
|||
// remove finished samples from list
|
||||
if ( psSample->bFinishedPlaying == true )
|
||||
{
|
||||
audio_RemoveSample( &g_psSampleList, psSample );
|
||||
psSampleTemp = psSample->psNext;
|
||||
audio_RemoveSample( &g_psSampleList, psSample );
|
||||
free(psSample);
|
||||
psSample = psSampleTemp;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue