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-861f7616d084
master
Per Inge Mathisen 2010-01-10 21:07:30 +00:00 committed by Git SVN Gateway
parent 467730a50e
commit 4f963349cc
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}